We need to check if we would break ourselves

This commit is contained in:
Peter Evans 2018-04-13 23:38:00 -05:00
parent a3a32662ef
commit b8b45cc9f2
1 changed files with 4 additions and 1 deletions

View File

@ -266,7 +266,10 @@ Test(apple2_debug, cmd_step)
cr_assert_eq(mach->cpu->PC, 1);
// We should go nowhere here
mos6502_execute(mach->cpu);
if (!apple2_debug_broke(mach->cpu->PC)) {
mos6502_execute(mach->cpu);
}
cr_assert_eq(mach->cpu->PC, 1);
// Step should a) unbreak at PC, b) execute at PC