STOP: Print CPU status and continue immediately (STOP sucks)

This commit is contained in:
John 2024-07-09 01:00:37 -05:00
parent 184054349f
commit 1a29412c85

View File

@ -269,7 +269,8 @@ mod instructions {
Ok(()) Ok(())
} }
pub fn stop(&mut self) -> IResult { pub fn stop(&mut self) -> IResult {
Err(UnimplementedInsn(self.ir).into()) println!("Stop requested.\n{self}");
Ok(())
} }
pub fn halt(&mut self) -> IResult { pub fn halt(&mut self) -> IResult {
Ok(()) Ok(())