diff --git a/src/m68k.rs b/src/m68k.rs index 9c9ea28..b05fd73 100644 --- a/src/m68k.rs +++ b/src/m68k.rs @@ -1547,6 +1547,9 @@ impl M68K { fn write_word(&mut self, address: u32, data: u16) -> Result<(), DetailedBusError> { let address = address & 0xFF_FFFF; + if address & 0x1 != 0 { + self.trap(3)?; + } if self.use_stored_mem_cycles { let cycle = self.stored_mem_cycles.remove(0); if let MemCycleInfo::WriteWord {