mirror of
https://github.com/FranLMSP/rmg-001.git
synced 2024-11-27 03:31:31 +00:00
Fix DMA bug
This commit is contained in:
parent
186d6fa23b
commit
2eb5d55bcc
@ -139,7 +139,7 @@ impl Bus {
|
|||||||
let mut count: u16 = 0;
|
let mut count: u16 = 0;
|
||||||
let oam_addr = SPRITE_ATTRIBUTE_TABLE.min().unwrap();
|
let oam_addr = SPRITE_ATTRIBUTE_TABLE.min().unwrap();
|
||||||
while count < 160 {
|
while count < 160 {
|
||||||
self.ppu.write_oam(oam_addr + count, self.data[(source + count) as usize]);
|
self.ppu.write_oam(oam_addr + count, self.read(source + count));
|
||||||
count += 1;
|
count += 1;
|
||||||
}
|
}
|
||||||
} else if PPU::is_io_register(address) {
|
} else if PPU::is_io_register(address) {
|
||||||
|
Loading…
Reference in New Issue
Block a user