summaryrefslogtreecommitdiff
path: root/emu/6502.h
diff options
context:
space:
mode:
Diffstat (limited to 'emu/6502.h')
-rw-r--r--emu/6502.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/emu/6502.h b/emu/6502.h
index dac07a1..20574c3 100644
--- a/emu/6502.h
+++ b/emu/6502.h
@@ -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,