GBA Memory: Fix DMA cycle counting
Jeffrey Pfau jeffrey@endrift.com
Tue, 09 Dec 2014 17:04:48 -0800
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
src/gba/gba-memory.c
→
src/gba/gba-memory.c
@@ -1106,7 +1106,7 @@ uint32_t source = info->nextSource;
uint32_t dest = info->nextDest; uint32_t sourceRegion = source >> BASE_OFFSET; uint32_t destRegion = dest >> BASE_OFFSET; - int32_t cycles = 0; + int32_t cycles = 2; if (source == info->source) { // TODO: support 4 cycles for ROM access