diff options
Diffstat (limited to 'cpu.c')
| -rw-r--r-- | cpu.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; } |
