GB Core: step now advances with instruction granularity

This commit is contained in:
Jeffrey Pfau 2016-05-23 19:09:20 -07:00
parent 210ef6db50
commit 11f21ecc46
1 changed files with 4 additions and 1 deletions

View File

@ -206,7 +206,10 @@ static void _GBCoreRunLoop(struct mCore* core) {
} }
static void _GBCoreStep(struct mCore* core) { 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) { static bool _GBCoreLoadState(struct mCore* core, struct VFile* vf, int flags) {