GB Memory: Fix DMA timing
Jeffrey Pfau jeffrey@endrift.com
Thu, 21 Jan 2016 23:53:15 -0800
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
src/gb/memory.c
→
src/gb/memory.c
@@ -247,7 +247,7 @@ return;
} gb->cpu->memory.store8 = GBDMAStore8; gb->cpu->memory.load8 = GBDMALoad8; - gb->memory.dmaNext = gb->cpu->cycles + 4; + gb->memory.dmaNext = gb->cpu->cycles; if (gb->memory.dmaNext < gb->cpu->nextEvent) { gb->cpu->nextEvent = gb->memory.dmaNext; }