summaryrefslogtreecommitdiff
path: root/emu/6502.h
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2020-12-10 19:50:39 +0100
committerAndreas Baumann <mail@andreasbaumann.cc>2020-12-10 19:50:39 +0100
commit1269d11d15f1014b7ac87fc2bb2c76367404e16c (patch)
treed8d4595811b279d2e7d5ccef32f55ba5cbcba585 /emu/6502.h
parent84e25eb07749636b48deb802d673f44841c55d91 (diff)
download6502-1269d11d15f1014b7ac87fc2bb2c76367404e16c.tar.gz
6502-1269d11d15f1014b7ac87fc2bb2c76367404e16c.tar.bz2
some more unit testing
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,