mirror of https://github.com/mgba-emu/mgba.git
GB Memory: Fix DMA timing
This commit is contained in:
parent
564810425e
commit
e11f9224ff
|
@ -247,7 +247,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 + 4;
|
||||
gb->memory.dmaNext = gb->cpu->cycles;
|
||||
if (gb->memory.dmaNext < gb->cpu->nextEvent) {
|
||||
gb->cpu->nextEvent = gb->memory.dmaNext;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue