From 9cc4c9e43da7e37c0a88d026fec9ab52a1b3ae2b Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Mon, 22 Jun 2015 21:20:37 -0700 Subject: [PATCH] GBA Memory: Fix mystery value --- src/gba/memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gba/memory.c b/src/gba/memory.c index 428c66e4c..4a5aa12fd 100644 --- a/src/gba/memory.c +++ b/src/gba/memory.c @@ -1528,7 +1528,7 @@ int32_t GBAMemoryStall(struct ARMCore* cpu, int32_t wait) { return wait; } - int32_t stall = 5 - memory->waitstatesSeq16[memory->activeRegion]; // Figure out where this value comes from + int32_t stall = memory->waitstatesNonseq16[memory->activeRegion] - memory->waitstatesSeq16[memory->activeRegion] + 1; // Base number of cycles for this insn is N int32_t base = memory->waitstatesSeq16[memory->activeRegion] + 1;