all repos — mgba @ 9cc4c9e43da7e37c0a88d026fec9ab52a1b3ae2b

mGBA Game Boy Advance Emulator

GBA Memory: Fix mystery value
Jeffrey Pfau jeffrey@endrift.com
Mon, 22 Jun 2015 21:20:37 -0700
commit

9cc4c9e43da7e37c0a88d026fec9ab52a1b3ae2b

parent

688b1933ec25e56aca31845b174b13edc2858ed8

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

jump to
M src/gba/memory.csrc/gba/memory.c

@@ -1528,7 +1528,7 @@ if (!memory->prefetch || memory->activeRegion < REGION_CART0) {

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;