Add format error trap

This commit is contained in:
pjht 2024-03-13 10:42:52 -05:00
parent 93d366bdc9
commit f42bb4e6dc
Signed by: pjht
GPG Key ID: CA239FC6934E6F3A

View File

@ -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;
}