From b569a32170837469ec484e6579cdc69022f3bccc Mon Sep 17 00:00:00 2001 From: Rekai Musuka Date: Fri, 21 Oct 2022 05:12:14 -0300 Subject: [PATCH] fix: allow for 32-bit reads to KEYINPUT --- src/bus/io.zig | 1 + 1 file changed, 1 insertion(+) diff --git a/src/bus/io.zig b/src/bus/io.zig index 08c529b..40c191a 100644 --- a/src/bus/io.zig +++ b/src/bus/io.zig @@ -30,6 +30,7 @@ pub const Io = struct { 0x0400_0000 => @as(u32, self.dispcnt.raw), 0x0400_0004 => @as(u32, self.dispstat.raw), 0x0400_0006 => @as(u32, self.vcount.raw), + 0x0400_0130 => @as(u32, self.keyinput.raw), 0x0400_0200 => @as(u32, self.ie.raw), 0x0400_0208 => @boolToInt(self.ime), else => std.debug.panic("[I/O:32] tried to read from {X:}", .{addr}),