From 4836ea3bcf6f9b22fea3fce38d80feb2225fb1ee Mon Sep 17 00:00:00 2001 From: Rekai Musuka Date: Fri, 21 Oct 2022 05:11:46 -0300 Subject: [PATCH] fix(io): fix DISPCNT is at wrong IO address --- src/bus/io.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bus/io.zig b/src/bus/io.zig index 8950aea..9ae59a7 100644 --- a/src/bus/io.zig +++ b/src/bus/io.zig @@ -29,7 +29,7 @@ pub const Io = struct { pub fn write16(self: *@This(), addr: u32, halfword: u16) void { switch (addr) { - 0x0400_000 => self.dispcnt.val = halfword, + 0x0400_0000 => self.dispcnt.val = halfword, else => std.debug.panic("[I/O:16] tried to write 0x{X:} to 0x{X:}", .{ halfword, addr }), } }