GB Memory: Fix DMA timing

This commit is contained in:
Jeffrey Pfau 2016-01-21 23:53:15 -08:00
parent 564810425e
commit e11f9224ff
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}