Fix address alignment bug in IoDevices::write_8

Former-commit-id: b89d469e9f2d11f21df3af2b4299cf9928abbd59
This commit is contained in:
Michel Heily 2019-12-23 01:31:43 +02:00
parent 10d0934f82
commit ac9a17713b

View file

@ -245,7 +245,7 @@ impl Bus for IoDevices {
} else { } else {
(t & 0xff00) | (value as u16) (t & 0xff00) | (value as u16)
}; };
self.write_16(addr, t); self.write_16(addr & !1, t);
} }
} }