GBA Memory: Force disable a repeating DMA when it would repeat infinitely
Jeffrey Pfau jeffrey@endrift.com
Wed, 10 Dec 2014 06:44:39 -0800
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
src/gba/gba-memory.c
→
src/gba/gba-memory.c
@@ -1164,7 +1164,7 @@ }
} if (!wordsRemaining) { - if (!GBADMARegisterIsRepeat(info->reg)) { + if (!GBADMARegisterIsRepeat(info->reg) || GBADMARegisterGetTiming(info->reg) == DMA_TIMING_NOW) { info->reg = GBADMARegisterClearEnable(info->reg); info->nextEvent = INT_MAX;