feat: reimplement joypad status register

This commit is contained in:
2021-05-03 03:27:23 -05:00
parent 66414075da
commit 1e19854ab0
2 changed files with 106 additions and 99 deletions

View File

@@ -133,7 +133,7 @@ impl Bus {
self.ppu.oam.read_byte(addr)
}
0xFEA0..=0xFEFF => {
eprintln!("Read from {:#06X}, which is prohibited", addr);
// eprintln!("Read from {:#06X}, which is prohibited", addr);
// TODO: Properly Emulate what can happen here
0x00
}
@@ -237,7 +237,7 @@ impl Bus {
self.ppu.oam.write_byte(addr, byte);
}
0xFEA0..=0xFEFF => {
eprintln!("Wrote {:#04X} to {:#06X}, which is prohibited", byte, addr);
// eprintln!("Wrote {:#04X} to {:#06X}, which is prohibited", byte, addr);
// TODO: Properly emulate what can happen here
}
0xFF00..=0xFF7F => {