clear bus cycle counter before running scheduler

This commit is contained in:
Matthew Berry 2022-09-25 00:06:13 -07:00
parent 432bfb962c
commit 8704417243

View file

@ -141,8 +141,8 @@ module GBA
else else
arm_execute instr arm_execute instr
end end
@gba.scheduler.tick @gba.bus.cycles cycles, @gba.bus.cycles = @gba.bus.cycles, 0
@gba.bus.cycles = 0 @gba.scheduler.tick cycles
else else
@gba.scheduler.fast_forward @gba.scheduler.fast_forward
end end