fix(io): fix DISPCNT is at wrong IO address
This commit is contained in:
parent
44d52d8137
commit
c9f0e1632c
|
@ -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 }),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue