diff options
author | alekseiplusplus <alekseijeaves@protonmail.com> | 2023-05-08 19:29:52 +1000 |
---|---|---|
committer | alekseiplusplus <alekseijeaves@protonmail.com> | 2023-05-08 19:29:52 +1000 |
commit | f844536c0a3a4ba397f586897482dcb0f7550f5b (patch) | |
tree | afd1eca6a69c01ceea5483baccf64ab666a4403b /src/cpu/6502.h | |
parent | c1d5bf8ab7648418fa7120ea4868205f3cf7e857 (diff) |
started graphical application, plus other stuff
Diffstat (limited to 'src/cpu/6502.h')
-rw-r--r-- | src/cpu/6502.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/cpu/6502.h b/src/cpu/6502.h index 8ceba29..66526fd 100644 --- a/src/cpu/6502.h +++ b/src/cpu/6502.h @@ -1,14 +1,15 @@ // 6502.h // Core elements of the 6502 CPU -typedef unsigned char\ +typedef unsigned char byte; -typedef unsigned short\ +typedef unsigned short address; byte acc, X, Y, P, S = 0x00; address PC = 0x0000; byte* Memory; +byte* ROM; // FLAGS #define flag_N 0x80 // Negative @@ -98,6 +99,10 @@ void setMemory(address x, byte y); + + + + #include"addressing.h" #include"instructions/definitions.h" #include"instructions/table.h"
\ No newline at end of file |