GB: Fix DMA restarting
Vicki Pfau vi@endrift.com
Sun, 18 Jun 2017 22:07:39 -0700
1 files changed,
1 insertions(+),
0 deletions(-)
jump to
M
src/gb/memory.c
→
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;