We need to check if we would break ourselves

This commit is contained in:
Peter Evans committed 2018-04-13 23:38:00 -05:00
1 parent a3a32662ef
commit b8b45cc9f2
1 file changed
+4 -1
+4 -1
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