GB: Fix DMA restarting

This commit is contained in:
Vicki Pfau 2017-06-18 22:07:39 -07:00
parent 7bc605fcc0
commit bd9a9e445e
1 changed files with 1 additions and 0 deletions

View File

@ -437,6 +437,7 @@ void GBMemoryDMA(struct GB* gb, uint16_t base) {
if (base > 0xF100) {
return;
}
mTimingDeschedule(&gb->timing, &gb->memory.dmaEvent);
mTimingSchedule(&gb->timing, &gb->memory.dmaEvent, 8);
if (gb->cpu->cycles + 8 < gb->cpu->nextEvent) {
gb->cpu->nextEvent = gb->cpu->cycles + 8;