From 9064ae9cf8f0f5a7266da9c1fd5ac9dbff4f4957 Mon Sep 17 00:00:00 2001 From: Michel Heily Date: Sun, 11 Aug 2019 21:49:19 +0300 Subject: [PATCH] Fix bug in IoRegs::write_32 Former-commit-id: a2c5b57a0e7da2fa0f080d70acd77b8643bc4742 --- src/core/ioregs.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/ioregs.rs b/src/core/ioregs.rs index dc55b6c..5d62737 100644 --- a/src/core/ioregs.rs +++ b/src/core/ioregs.rs @@ -198,7 +198,7 @@ impl Bus for IoRegs { fn write_32(&mut self, addr: Addr, value: u32) { 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) {