upgrade eframe and wgpu

This commit is contained in:
2024-11-06 21:54:40 -05:00
parent 442cf5748b
commit cee99d12f4
5 changed files with 11 additions and 5 deletions
+6
View File
@@ -35,6 +35,12 @@ impl Bus {
}
}
pub fn hard_reset(&mut self) {
self.wram = [0; 0x10000];
self.internal_registers = InternalRegisters::new();
self.dma = DMA::new();
}
fn read_wram(&self, address: u32) -> u8 {
self.wram[(address & 0xFFFF) as usize]
}
+2 -1
View File
@@ -40,7 +40,8 @@ impl Emulator {
pub fn hard_reset(&mut self) {
self.cpu = CPU::new();
self.bus = Bus::new();
self.bus.hard_reset();
self.reset_vector();
}
}