diff options
Diffstat (limited to 'cpu.c')
| -rw-r--r-- | cpu.c | 11 |
1 files changed, 3 insertions, 8 deletions
@@ -92,13 +92,8 @@ static void cpu_tick(struct nes_state *state) { uint8_t opcode; - // if(cpu->pc <= 0x90cc || cpu->pc >= 0x90e6) { - // printf("%5.5d %4.4x: ", line++, cpu->pc); - // 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); - // } else { - opcode = memory_read(state, cpu->pc++); - // } + // printf("%5.5d %4.4x: ", line++, cpu->pc); + 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); - } |
