chore: code cleanup

This commit is contained in:
2021-11-30 03:45:54 -04:00
parent a0e3c7c602
commit 70e0b5868d
6 changed files with 42 additions and 121 deletions

View File

@@ -17,11 +17,11 @@ impl Default for HighRam {
}
impl BusIo for HighRam {
fn write_byte(&mut self, addr: u16, byte: u8) {
self.buf[addr as usize - HIGH_RAM_START_ADDRESS] = byte;
}
fn read_byte(&self, addr: u16) -> u8 {
self.buf[addr as usize - HIGH_RAM_START_ADDRESS]
}
fn write_byte(&mut self, addr: u16, byte: u8) {
self.buf[addr as usize - HIGH_RAM_START_ADDRESS] = byte;
}
}