mirror of
https://github.com/pevans/erc-c.git
synced 2025-01-03 00:29:38 +00:00
The debug_break check was moved outside of the mos6502_execute function
This commit is contained in:
parent
04e72486f1
commit
3834c1e112
@ -194,11 +194,22 @@ Test(apple2_debug, break)
|
|||||||
mos6502_set(mach->cpu, 2, 0xEA);
|
mos6502_set(mach->cpu, 2, 0xEA);
|
||||||
mos6502_set(mach->cpu, 3, 0xEA);
|
mos6502_set(mach->cpu, 3, 0xEA);
|
||||||
|
|
||||||
|
if (!apple2_debug_broke(mach->cpu->PC)) {
|
||||||
mos6502_execute(mach->cpu);
|
mos6502_execute(mach->cpu);
|
||||||
|
}
|
||||||
|
|
||||||
cr_assert_eq(mach->cpu->PC, 1);
|
cr_assert_eq(mach->cpu->PC, 1);
|
||||||
|
|
||||||
|
if (!apple2_debug_broke(mach->cpu->PC)) {
|
||||||
mos6502_execute(mach->cpu);
|
mos6502_execute(mach->cpu);
|
||||||
|
}
|
||||||
|
|
||||||
cr_assert_eq(mach->cpu->PC, 2);
|
cr_assert_eq(mach->cpu->PC, 2);
|
||||||
|
|
||||||
|
if (!apple2_debug_broke(mach->cpu->PC)) {
|
||||||
mos6502_execute(mach->cpu);
|
mos6502_execute(mach->cpu);
|
||||||
|
}
|
||||||
|
|
||||||
cr_assert_eq(mach->cpu->PC, 2);
|
cr_assert_eq(mach->cpu->PC, 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user