From f42bb4e6dc6164912b4edd0c3703abaf127afd4b Mon Sep 17 00:00:00 2001 From: pjht Date: Wed, 13 Mar 2024 10:42:52 -0500 Subject: [PATCH] Add format error trap --- src/m68k.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/m68k.rs b/src/m68k.rs index dfaa9e5..64e276f 100644 --- a/src/m68k.rs +++ b/src/m68k.rs @@ -747,6 +747,11 @@ impl M68K { } else if last_cycle.is_err() { self.stored_mem_cycles.pop(); } + } if format == 0 { + // Nothing extra needed + } else { + self.trap(14)?; + return Err(InsExecError::AbnormalTrap); } self.sr = orig_sr; }