mirror of
https://github.com/pevans/erc-c.git
synced 2024-12-21 23:29:16 +00:00
Move vm_debug_broke() check out of mos6502 and into apple2
This commit is contained in:
parent
18e0bde099
commit
27d0a15bc5
@ -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)) {
|
if (vm_screen_dirty(mach->screen)) {
|
||||||
apple2_draw(mach);
|
apple2_draw(mach);
|
||||||
|
@ -312,12 +312,6 @@ mos6502_execute(mos6502 *cpu)
|
|||||||
mos6502_address_resolver resolver;
|
mos6502_address_resolver resolver;
|
||||||
mos6502_instruction_handler handler;
|
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);
|
opcode = mos6502_get(cpu, cpu->PC);
|
||||||
|
|
||||||
// The disassembler knows how many bytes each operand requires
|
// The disassembler knows how many bytes each operand requires
|
||||||
|
Loading…
Reference in New Issue
Block a user