From 63a439406c985bc43bc4e3ce1044371e0dfc1291 Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Tue, 9 Dec 2014 17:04:48 -0800 Subject: [PATCH] GBA Memory: Fix DMA cycle counting --- src/gba/gba-memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gba/gba-memory.c b/src/gba/gba-memory.c index b2775ce41..b6eec73d6 100644 --- a/src/gba/gba-memory.c +++ b/src/gba/gba-memory.c @@ -1106,7 +1106,7 @@ void GBAMemoryServiceDMA(struct GBA* gba, int number, struct GBADMA* info) { 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