all repos — mgba @ 882cd0dcf6a2d51e785a53e94883c3cd8bb30e0c

mGBA Game Boy Advance Emulator

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
commit

882cd0dcf6a2d51e785a53e94883c3cd8bb30e0c

parent

7e4a79a93eec3aa5a9dd2fadf2faea6f536f7450

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

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