diff --git a/src/apple2.c b/src/apple2.c index 051d3d7..8124edb 100644 --- a/src/apple2.c +++ b/src/apple2.c @@ -322,8 +322,7 @@ apple2_run_loop(apple2 *mach) while (vm_screen_active(mach->screen)) { mos6502_dis_opcode(mach->cpu, stdout, mach->cpu->PC); - mos6502_execute(mach->cpu, - vm_segment_get(mach->memory, mach->cpu->PC)); + mos6502_execute(mach->cpu, mos6502_next_byte(mach->cpu)); vm_screen_refresh(mach->screen); } }