Fix address alignment bug in IoDevices::write_8
Former-commit-id: b89d469e9f2d11f21df3af2b4299cf9928abbd59
This commit is contained in:
parent
10d0934f82
commit
ac9a17713b
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in a new issue