fix(io): fix DISPCNT is at wrong IO address

This commit is contained in:
Rekai Nyangadzayi Musuka 2022-10-21 05:11:46 -03:00
parent 182392bf1c
commit 4836ea3bcf
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ pub const Io = struct {
pub fn write16(self: *@This(), addr: u32, halfword: u16) void { pub fn write16(self: *@This(), addr: u32, halfword: u16) void {
switch (addr) { 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 }), else => std.debug.panic("[I/O:16] tried to write 0x{X:} to 0x{X:}", .{ halfword, addr }),
} }
} }