change target address to 24 bits instead of 16 for DMAs to BWRAM to reflect size of DDA register

This commit is contained in:
Fernap 2024-10-29 14:03:15 -07:00 committed by Screwtapello
parent cdef244f38
commit b815744b4c
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@ auto SA1::dmaNormal() -> void {
while(mmio.dtc--) { while(mmio.dtc--) {
uint8 data = r.mdr; uint8 data = r.mdr;
uint24 source = mmio.dsa++; uint24 source = mmio.dsa++;
uint16 target = mmio.dda++; uint24 target = mmio.dda++;
if(mmio.sd == DMA::SourceROM && mmio.dd == DMA::DestBWRAM) { if(mmio.sd == DMA::SourceROM && mmio.dd == DMA::DestBWRAM) {
step(); step();