From f844536c0a3a4ba397f586897482dcb0f7550f5b Mon Sep 17 00:00:00 2001 From: alekseiplusplus Date: Mon, 8 May 2023 19:29:52 +1000 Subject: started graphical application, plus other stuff --- src/cpu/6502.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/cpu') 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 -- cgit v1.2.3