From 1a29412c85bee284d9661b240bc6a805faed156f Mon Sep 17 00:00:00 2001 From: John Date: Tue, 9 Jul 2024 01:00:37 -0500 Subject: [PATCH] STOP: Print CPU status and continue immediately (STOP sucks) --- src/cpu.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cpu.rs b/src/cpu.rs index a955c3b..912f0e5 100644 --- a/src/cpu.rs +++ b/src/cpu.rs @@ -269,7 +269,8 @@ mod instructions { Ok(()) } pub fn stop(&mut self) -> IResult { - Err(UnimplementedInsn(self.ir).into()) + println!("Stop requested.\n{self}"); + Ok(()) } pub fn halt(&mut self) -> IResult { Ok(())