Fix M68K::write_word ot checking for an aligned address
This commit is contained in:
parent
26837a6750
commit
f5df45499a
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user