diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2020-12-10 19:50:39 +0100 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2020-12-10 19:50:39 +0100 |
commit | 1269d11d15f1014b7ac87fc2bb2c76367404e16c (patch) | |
tree | d8d4595811b279d2e7d5ccef32f55ba5cbcba585 /emu/6502.h | |
parent | 84e25eb07749636b48deb802d673f44841c55d91 (diff) | |
download | 6502-1269d11d15f1014b7ac87fc2bb2c76367404e16c.tar.gz 6502-1269d11d15f1014b7ac87fc2bb2c76367404e16c.tar.bz2 |
some more unit testing
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, |