mirror of https://github.com/mgba-emu/mgba.git
DS DMA: Fix Clearning enable bit clearing too much
This commit is contained in:
parent
b86fe419ec
commit
944604fe84
|
@ -123,7 +123,7 @@ void _dmaEvent(struct mTiming* timing, void* context, uint32_t cyclesLate) {
|
|||
dma->reg = GBADMARegisterClearEnable(dma->reg);
|
||||
|
||||
// Clear the enable bit in memory
|
||||
memory->io[(DS_REG_DMA0CNT_HI + memory->activeDMA * (DS_REG_DMA1CNT_HI - DS_REG_DMA0CNT_HI)) >> 1] &= 0x7FE0;
|
||||
memory->io[(DS_REG_DMA0CNT_HI + memory->activeDMA * (DS_REG_DMA1CNT_HI - DS_REG_DMA0CNT_HI)) >> 1] &= 0x7FFF;
|
||||
}
|
||||
if (GBADMARegisterGetDestControl(dma->reg) == DMA_INCREMENT_RELOAD) {
|
||||
dma->nextDest = dma->dest;
|
||||
|
|
Loading…
Reference in New Issue