From 14d5160674d2bd5d76354a904970433931de71a6 Mon Sep 17 00:00:00 2001 From: Rekai Musuka Date: Fri, 21 Oct 2022 05:12:07 -0300 Subject: [PATCH] fix: allow 32-bit writes to DISPCNT --- src/bus/io.zig | 1 + 1 file changed, 1 insertion(+) diff --git a/src/bus/io.zig b/src/bus/io.zig index 4fc915e..1d52b1f 100644 --- a/src/bus/io.zig +++ b/src/bus/io.zig @@ -36,6 +36,7 @@ pub const Io = struct { pub fn write32(self: *Self, addr: u32, word: u32) void { switch (addr) { + 0x0400_0000 => self.dispcnt.raw = @truncate(u16, word), 0x0400_0200 => self.ie.raw = @truncate(u16, word), 0x0400_0208 => self.ime = word & 1 == 1, else => std.debug.panic("[I/O:32] tried to write 0x{X:} to 0x{X:}", .{ word, addr }),