tmp: implement mechanisms for a emu reset fn (currently crashes)
This commit is contained in:
@@ -222,3 +222,10 @@ pub const EmuThing = struct {
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
pub fn reset(cpu: *Arm7tdmi) void {
|
||||
// @breakpoint();
|
||||
cpu.sched.reset(); // Yes this is order sensitive, see the PPU reset for why
|
||||
cpu.bus.reset();
|
||||
cpu.reset();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user