broken PPU imp

This commit is contained in:
2026-08-09 19:46:07 -05:00
parent 2964e6fad2
commit d758fae787
5 changed files with 245 additions and 24 deletions
+16
View File
@@ -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 {