mirror of
https://github.com/pevans/erc-c.git
synced 2025-01-10 03:29:23 +00:00
We need to check if we would break ourselves
This commit is contained in:
parent
a3a32662ef
commit
b8b45cc9f2
@ -266,7 +266,10 @@ Test(apple2_debug, cmd_step)
|
|||||||
cr_assert_eq(mach->cpu->PC, 1);
|
cr_assert_eq(mach->cpu->PC, 1);
|
||||||
|
|
||||||
// We should go nowhere here
|
// 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);
|
cr_assert_eq(mach->cpu->PC, 1);
|
||||||
|
|
||||||
// Step should a) unbreak at PC, b) execute at PC
|
// Step should a) unbreak at PC, b) execute at PC
|
||||||
|
Loading…
x
Reference in New Issue
Block a user