From c9f0e1632c49b2a7a779c775291e99ef75384194 Mon Sep 17 00:00:00 2001 From: Rekai Musuka Date: Mon, 3 Jan 2022 17:49:15 -0600 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 }), } }