all repos — mgba @ 11f21ecc463bc08ee44d70387c29309e7ce7c098

mGBA Game Boy Advance Emulator

GB Core: step now advances with instruction granularity
Jeffrey Pfau jeffrey@endrift.com
Mon, 23 May 2016 19:09:20 -0700
commit

11f21ecc463bc08ee44d70387c29309e7ce7c098

parent

210ef6db506e26cd3bc2f0eb67d46563285fdfdb

1 files changed, 4 insertions(+), 1 deletions(-)

jump to
M src/gb/core.csrc/gb/core.c

@@ -206,7 +206,10 @@ LR35902Run(core->cpu);

} static void _GBCoreStep(struct mCore* core) { - LR35902Tick(core->cpu); + struct LR35902Core* cpu = core->cpu; + do { + LR35902Tick(cpu); + } while (cpu->executionState != LR35902_CORE_FETCH); } static bool _GBCoreLoadState(struct mCore* core, struct VFile* vf, int flags) {