mirror of https://github.com/mgba-emu/mgba.git
GB Memory: REALLY fix DMA timing this time
This commit is contained in:
parent
6bf77357af
commit
dbdd61cdcd
|
@ -255,7 +255,7 @@ void GBMemoryDMA(struct GB* gb, uint16_t base) {
|
|||
}
|
||||
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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue