summaryrefslogtreecommitdiff
path: root/cpu.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpu.c')
-rw-r--r--cpu.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/cpu.c b/cpu.c
index f6a070e..e3e83e6 100644
--- a/cpu.c
+++ b/cpu.c
@@ -5,6 +5,8 @@
// DO NOT ENABLE FOR NES!!!!!
// #define ENABLE_DECIMAL_MODE
+#define PAGE_CROSSED(base, addr) (((base ^ addr) > 0xff))
+
static inline uint8_t pack_flags(struct cpu_state *cpu) {
return (cpu->n << 7) | (cpu->v << 6) | (1 << 5) | (cpu->d << 3) | (cpu->i << 2) | (cpu->z << 1) | cpu->c;
}