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

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

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