all repos — mgba @ 6d23328bdae0698eac57d2ab68c6ba6c02a396b3

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

6d23328bdae0698eac57d2ab68c6ba6c02a396b3

parent

5b41141b0213cfb6f1be273784166ef79aae05e7

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;