feat: pass beeg yoshi

This commit is contained in:
Rekai Nyangadzayi Musuka 2022-10-21 05:12:24 -03:00
parent 02d2ff3e0c
commit 9455ffe837
1 changed files with 4 additions and 0 deletions

View File

@ -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_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_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_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_00BA => bus.io.dma0.writeCntHigh(halfword),
0x0400_00C4 => bus.io.dma1.writeWordCount(halfword),
0x0400_00C6 => bus.io.dma1.writeCntHigh(halfword), 0x0400_00C6 => bus.io.dma1.writeCntHigh(halfword),
0x0400_00D0 => bus.io.dma2.writeWordCount(halfword),
0x0400_00D2 => bus.io.dma2.writeCntHigh(halfword), 0x0400_00D2 => bus.io.dma2.writeCntHigh(halfword),
0x0400_00DC => bus.io.dma3.writeWordCount(halfword),
0x0400_00DE => bus.io.dma3.writeCntHigh(halfword), 0x0400_00DE => bus.io.dma3.writeCntHigh(halfword),
0x0400_0100 => log.warn("Wrote 0x{X:0>4} to TM0CNT_L", .{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}), 0x0400_0102 => log.warn("Wrote 0x{X:0>4} to TM0CNT_H", .{halfword}),