all repos — mgba @ 63a439406c985bc43bc4e3ce1044371e0dfc1291

mGBA Game Boy Advance Emulator

GBA Memory: Fix DMA cycle counting
Jeffrey Pfau jeffrey@endrift.com
Tue, 09 Dec 2014 17:04:48 -0800
commit

63a439406c985bc43bc4e3ce1044371e0dfc1291

parent

c5cf9957a163aa44b87078e4dd6949c26cded907

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

jump to
M src/gba/gba-memory.csrc/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