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

This commit is contained in:
Rekai Nyangadzayi Musuka 2022-01-03 17:49:15 -06:00
parent 44d52d8137
commit c9f0e1632c
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 {
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 }),
}
}