From e2533dedebe6a2625113f4b3b63e20a6bdbca853 Mon Sep 17 00:00:00 2001 From: Rekai Musuka Date: Fri, 21 Oct 2022 05:12:48 -0300 Subject: [PATCH] chore: stub 8-bit window registers --- src/bus/io.zig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/bus/io.zig b/src/bus/io.zig index 21b8aa2..b6fef98 100644 --- a/src/bus/io.zig +++ b/src/bus/io.zig @@ -394,6 +394,8 @@ pub fn write(bus: *Bus, comptime T: type, address: u32, value: T) void { 0x0400_0009 => bus.ppu.bg[0].cnt.raw = (@as(u16, value) << 8) | (bus.ppu.bg[0].cnt.raw & 0xFF), 0x0400_000A => bus.ppu.bg[1].cnt.raw = (bus.ppu.bg[1].cnt.raw & 0xFF00) | value, 0x0400_000B => bus.ppu.bg[1].cnt.raw = (@as(u16, value) << 8) | (bus.ppu.bg[1].cnt.raw & 0xFF), + 0x0400_0048 => log.debug("Wrote 0x{X:0>2} to WININ_L", .{value}), + 0x0400_004A => log.debug("Wrote 0x{X:0>2} to WINOUT_L", .{value}), 0x0400_0054 => log.debug("Wrote 0x{X:0>2} to BLDY_L", .{value}), // Sound