Restart emulation as soon as a ROM is loaded

This commit is contained in:
2024-11-06 21:22:13 -05:00
parent d8c8867937
commit 442cf5748b
3 changed files with 15 additions and 4 deletions
+6 -1
View File
@@ -34,9 +34,14 @@ impl Emulator {
}
}
pub fn reset(&mut self) {
pub fn reset_vector(&mut self) {
self.cpu.reset_vector(&mut self.bus);
}
pub fn hard_reset(&mut self) {
self.cpu = CPU::new();
self.bus = Bus::new();
}
}
impl Default for Emulator {