diff options
Diffstat (limited to 'cpu.c')
| -rw-r--r-- | cpu.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -80,13 +80,10 @@ static inline void check_interrupts(struct nes_state *state) { static inline void cpu_tick(struct nes_state *state) { struct cpu_state * restrict cpu = &state->cpu; - check_interrupts(state); - uint8_t opcode; - // printf("%4.4x: ", cpu->pc); - opcode = memory_read(state, cpu->pc++); + uint8_t opcode = memory_read(state, cpu->pc++); // printf("%2.2x a:%2.2x x:%2.2x y:%2.2x p:%2.2x sp:%2.2x cycle: %ld\n", opcode, cpu->a, cpu->x, cpu->y, pack_flags(cpu), cpu->sp, state->cycles); opcode_lut[opcode](state); } |
