Fix M68K::write_word ot checking for an aligned address

This commit is contained in:
pjht 2023-11-04 09:07:47 -05:00
parent 26837a6750
commit f5df45499a
Signed by: pjht
GPG Key ID: 7B5F6AFBEC7EE78E

View File

@ -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 {