GB Core: step now advances with instruction granularity
Jeffrey Pfau jeffrey@endrift.com
Mon, 23 May 2016 19:09:20 -0700
1 files changed,
4 insertions(+),
1 deletions(-)
jump to
M
src/gb/core.c
→
src/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) {