vblank and registers
This commit is contained in:
@@ -108,4 +108,14 @@ pub trait PPUMemory {
|
||||
self.writeb_ppu(addr, data as Byte);
|
||||
self.writeb_ppu(addr + 1, (data >> 8) as Byte);
|
||||
}
|
||||
}
|
||||
|
||||
pub trait PPUMemoryReader {
|
||||
fn readb_ppu<T: PPUMemory>(&self, mem: &T, addr: Addr) -> Byte {
|
||||
mem.readb_ppu(addr)
|
||||
}
|
||||
|
||||
fn writeb_ppu<T: PPUMemory>(&mut self, mem: &mut T, addr: Addr, data: Byte) {
|
||||
mem.writeb_ppu(addr, data)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user