diff options
Diffstat (limited to 'emu/6502.h')
-rw-r--r-- | emu/6502.h | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -15,11 +15,19 @@ typedef struct struct memory_t *memory; - bool debug; + int debug_flags; int steps; } cpu_6502_t; +// debug flags +enum { + DEBUG_STATUS = 0x01, + DEBUG_ZERO_PAGE = 0x02, + DEBUG_STACK = 0x04 +}; + +// processor state bits enum { PS_N = 0x80, PS_V = 0x40, @@ -30,6 +38,7 @@ enum { PS_C = 0x01 }; +// opcodes enum { LDX_IMM = 0xA2, LDX_ZERO = 0xA6, |