all repos — mgba @ dbdd61cdcdef83d47402c187acd1ff6e16ff9ccb

mGBA Game Boy Advance Emulator

GB Memory: REALLY fix DMA timing this time
Jeffrey Pfau jeffrey@endrift.com
Wed, 27 Jan 2016 21:07:00 -0800
commit

dbdd61cdcdef83d47402c187acd1ff6e16ff9ccb

parent

6bf77357af61dd6638458851a698030ba6eeaa23

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

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