broken PPU imp
This commit is contained in:
+16
@@ -16,6 +16,22 @@ impl NesBus {
|
||||
pub fn new(cart: Cartridge) -> Self {
|
||||
Self { ram: [0; 0x800], cart, ppu: Ppu::new(), openbus: 0 }
|
||||
}
|
||||
|
||||
pub fn tick_ppu(&mut self, cycles: u64) {
|
||||
self.ppu.tick(&mut self.cart, cycles);
|
||||
}
|
||||
pub fn frame_done(&self) -> bool {
|
||||
self.ppu.frame_done()
|
||||
}
|
||||
pub fn take_nmi(&mut self) -> bool {
|
||||
self.ppu.take_nmi()
|
||||
}
|
||||
pub fn framebuffer(&self) -> &[u8] {
|
||||
self.ppu.framebuffer()
|
||||
}
|
||||
pub fn begin_frame(&mut self) {
|
||||
self.ppu.begin_frame();
|
||||
}
|
||||
}
|
||||
|
||||
impl Bus for NesBus {
|
||||
|
||||
Reference in New Issue
Block a user