diff options
Diffstat (limited to 'emu/6502.h')
-rw-r--r-- | emu/6502.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -20,6 +20,8 @@ typedef struct int debug_flags; int steps; + + int error_state; } cpu_6502_t; // debug flags @@ -29,6 +31,12 @@ enum { DEBUG_STACK = 0x04 }; +// error state +enum { + ERROR_STATE_OK = 0x00, + ERROR_STATE_ILLEGAL_OPCODE = 0x01 +}; + // processor state bits enum { PS_N = 0x80, |