GB Memory: REALLY fix DMA timing this time
Jeffrey Pfau jeffrey@endrift.com
Wed, 27 Jan 2016 21:07:00 -0800
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
src/gb/memory.c
→
src/gb/memory.c
@@ -255,7 +255,7 @@ return;
} gb->cpu->memory.store8 = GBDMAStore8; gb->cpu->memory.load8 = GBDMALoad8; - gb->memory.dmaNext = gb->cpu->cycles; + gb->memory.dmaNext = gb->cpu->cycles + 8; if (gb->memory.dmaNext < gb->cpu->nextEvent) { gb->cpu->nextEvent = gb->memory.dmaNext; }