all repos — mgba @ bd9a9e445e782e2bf623f5212060db5fbe60cc4b

mGBA Game Boy Advance Emulator

GB: Fix DMA restarting
Vicki Pfau vi@endrift.com
Sun, 18 Jun 2017 22:07:39 -0700
commit

bd9a9e445e782e2bf623f5212060db5fbe60cc4b

parent

7bc605fcc0e04ae6f8ce92e21c9f3654c1930635

1 files changed, 1 insertions(+), 0 deletions(-)

jump to
M src/gb/memory.csrc/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;