From bd9a9e445e782e2bf623f5212060db5fbe60cc4b Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Sun, 18 Jun 2017 22:07:39 -0700 Subject: [PATCH] GB: Fix DMA restarting --- src/gb/memory.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gb/memory.c b/src/gb/memory.c index eafa0c911..c424f5a92 100644 --- a/src/gb/memory.c +++ b/src/gb/memory.c @@ -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;