From ddb68a79522f6dced4816a1c4f38b39c00f843bd Mon Sep 17 00:00:00 2001 From: Rekai Musuka Date: Mon, 28 Feb 2022 18:24:24 -0400 Subject: [PATCH] feat: pass beeg yoshi --- src/bus/io.zig | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/bus/io.zig b/src/bus/io.zig index 136f378..ef1a3e3 100644 --- a/src/bus/io.zig +++ b/src/bus/io.zig @@ -161,9 +161,13 @@ pub fn write16(bus: *Bus, addr: u32, halfword: u16) void { 0x0400_0080 => log.warn("Wrote 0x{X:0>4} to SOUNDCNT_L", .{halfword}), 0x0400_0082 => log.warn("Wrote 0x{X:0>4} to SOUNDCNT_H", .{halfword}), 0x0400_0084 => log.warn("Wrote 0x{X:0>4} to SOUNDCNT_X", .{halfword}), + 0x0400_00B8 => bus.io.dma0.writeWordCount(halfword), 0x0400_00BA => bus.io.dma0.writeCntHigh(halfword), + 0x0400_00C4 => bus.io.dma1.writeWordCount(halfword), 0x0400_00C6 => bus.io.dma1.writeCntHigh(halfword), + 0x0400_00D0 => bus.io.dma2.writeWordCount(halfword), 0x0400_00D2 => bus.io.dma2.writeCntHigh(halfword), + 0x0400_00DC => bus.io.dma3.writeWordCount(halfword), 0x0400_00DE => bus.io.dma3.writeCntHigh(halfword), 0x0400_0100 => log.warn("Wrote 0x{X:0>4} to TM0CNT_L", .{halfword}), 0x0400_0102 => log.warn("Wrote 0x{X:0>4} to TM0CNT_H", .{halfword}),