summaryrefslogtreecommitdiff
path: root/emu/6502.h
diff options
context:
space:
mode:
Diffstat (limited to 'emu/6502.h')
-rw-r--r--emu/6502.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/emu/6502.h b/emu/6502.h
index 1880c90..c3143e7 100644
--- a/emu/6502.h
+++ b/emu/6502.h
@@ -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,