set dma addr to last loaded

This commit is contained in:
Alex Janka 2023-02-09 12:31:57 +11:00
parent a462e2cfd2
commit 3d15a1ef6f

View file

@ -260,6 +260,7 @@ impl Memory {
if data > 0xDF { if data > 0xDF {
panic!("dma transfer out of bounds: {:#X}", data); panic!("dma transfer out of bounds: {:#X}", data);
} }
self.io[addr_l] = data;
let mut addr: u16 = 0x0; let mut addr: u16 = 0x0;
addr.set_high(data); addr.set_high(data);
for l in 0x0..0xA0 { for l in 0x0..0xA0 {