all repos — mgba @ e11f9224ffd3bcb576d454428ecf6718d926f77f

mGBA Game Boy Advance Emulator

GB Memory: Fix DMA timing
Jeffrey Pfau jeffrey@endrift.com
Thu, 21 Jan 2016 23:53:15 -0800
commit

e11f9224ffd3bcb576d454428ecf6718d926f77f

parent

564810425ee52de610c68dccfb35b47cb455ba5b

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

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