From e661331bd10737d7771201053d80f31c32c228d7 Mon Sep 17 00:00:00 2001 From: zeromus Date: Thu, 29 Jan 2009 14:38:11 +0000 Subject: [PATCH] revert something crazymax did in dma which broke repeating dmas --- desmume/src/MMU.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/desmume/src/MMU.cpp b/desmume/src/MMU.cpp index 3f21c915e..46d9e702f 100644 --- a/desmume/src/MMU.cpp +++ b/desmume/src/MMU.cpp @@ -986,12 +986,13 @@ void FASTCALL MMU_doDMA(u32 num) src += srcinc; } -#if 0 + //this is necessary for repeating DMA such as to scroll registers for NSMB level backdrop scrolling effect +//#if 0 //write back the addresses DMASrc[PROCNUM][num] = src; if((u & 0x3)!=3) //but dont write back dst if we were supposed to reload DMADst[PROCNUM][num] = dst; -#endif +//#endif } }