mirror of
https://github.com/FranLMSP/rmg-001.git
synced 2026-01-01 07:31:34 -05:00
Fix DMA bug
This commit is contained in:
@@ -139,7 +139,7 @@ impl Bus {
|
||||
let mut count: u16 = 0;
|
||||
let oam_addr = SPRITE_ATTRIBUTE_TABLE.min().unwrap();
|
||||
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;
|
||||
}
|
||||
} else if PPU::is_io_register(address) {
|
||||
|
||||
Reference in New Issue
Block a user