GB Memory: REALLY fix DMA timing this time

This commit is contained in:
Jeffrey Pfau 2016-01-27 21:07:00 -08:00
parent 6bf77357af
commit dbdd61cdcd
1 changed files with 1 additions and 1 deletions

View File

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