From f728080c92d5f92f19e77dfdd970ba747c337063 Mon Sep 17 00:00:00 2001 From: pjht Date: Mon, 14 Nov 2022 10:57:53 -0600 Subject: [PATCH] Fix reset instruction to reset bus, not cpu --- src/m68k.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/m68k.rs b/src/m68k.rs index 230ffc4..c74400e 100644 --- a/src/m68k.rs +++ b/src/m68k.rs @@ -421,7 +421,9 @@ impl M68K { MoveDirection::RegToMem => self.usp = self.read_effective(areg, Size::Long), } } - Instruction::Reset => self.reset(), + Instruction::Reset => { + self.bus.reset(); + } Instruction::Nop => (), Instruction::Stop(sr) => { self.sr = sr;