1
0
mirror of https://github.com/pevans/erc-c.git synced 2024-12-21 08:30:55 +00:00

Move vm_debug_broke() check out of mos6502 and into apple2

This commit is contained in:
Peter Evans 2018-04-07 00:48:16 -05:00
parent 18e0bde099
commit 27d0a15bc5
2 changed files with 3 additions and 7 deletions

View File

@ -391,7 +391,9 @@ apple2_run_loop(apple2 *mach)
}
}
mos6502_execute(mach->cpu);
if (!vm_debug_broke(mach->cpu->PC)) {
mos6502_execute(mach->cpu);
}
if (vm_screen_dirty(mach->screen)) {
apple2_draw(mach);

View File

@ -312,12 +312,6 @@ mos6502_execute(mos6502 *cpu)
mos6502_address_resolver resolver;
mos6502_instruction_handler handler;
// We shouldn't normally get here, if there was a breakpoint, but we
// will in testing.
if (vm_debug_broke(cpu->PC)) {
return;
}
opcode = mos6502_get(cpu, cpu->PC);
// The disassembler knows how many bytes each operand requires