From b815744b4cff6d6854090545b78ae8e1a6669976 Mon Sep 17 00:00:00 2001 From: Fernap <84458524+Fernap@users.noreply.github.com> Date: Tue, 29 Oct 2024 14:03:15 -0700 Subject: [PATCH] change target address to 24 bits instead of 16 for DMAs to BWRAM to reflect size of DDA register --- bsnes/sfc/coprocessor/sa1/dma.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bsnes/sfc/coprocessor/sa1/dma.cpp b/bsnes/sfc/coprocessor/sa1/dma.cpp index ba494a6bc..f7b4aeb69 100644 --- a/bsnes/sfc/coprocessor/sa1/dma.cpp +++ b/bsnes/sfc/coprocessor/sa1/dma.cpp @@ -3,7 +3,7 @@ auto SA1::dmaNormal() -> void { while(mmio.dtc--) { uint8 data = r.mdr; uint24 source = mmio.dsa++; - uint16 target = mmio.dda++; + uint24 target = mmio.dda++; if(mmio.sd == DMA::SourceROM && mmio.dd == DMA::DestBWRAM) { step();