Fix bug in IoRegs::write_32
Former-commit-id: a2c5b57a0e7da2fa0f080d70acd77b8643bc4742
This commit is contained in:
parent
3f6a52cae6
commit
9064ae9cf8
|
@ -198,7 +198,7 @@ impl Bus for IoRegs {
|
||||||
|
|
||||||
fn write_32(&mut self, addr: Addr, value: u32) {
|
fn write_32(&mut self, addr: Addr, value: u32) {
|
||||||
self.write_16(addr, (value & 0xffff) as u16);
|
self.write_16(addr, (value & 0xffff) as u16);
|
||||||
self.write_16(addr, (value >> 16) as u16);
|
self.write_16(addr + 2, (value >> 16) as u16);
|
||||||
}
|
}
|
||||||
|
|
||||||
fn write_16(&mut self, addr: Addr, value: u16) {
|
fn write_16(&mut self, addr: Addr, value: u16) {
|
||||||
|
|
Reference in a new issue