chore(snd): implement shift amount for channel 3 volume

This commit is contained in:
2021-06-24 01:12:55 -05:00
parent 67e2a6ad79
commit 278953ab78
2 changed files with 16 additions and 3 deletions

View File

@@ -238,7 +238,7 @@ impl BusIo for Bus {
0x24 => self.snd.ctrl.channel.into(),
0x25 => self.snd.ctrl.output.into(),
0x26 => self.snd.ctrl.status.into(),
0x30..=0x3F => self.snd.ch3.ram[addr as usize - 0xFF30],
0x30..=0x3F => self.snd.ch3.wave_ram[addr as usize - 0xFF30],
0x40 => self.ppu.ctrl.into(),
0x41 => self.ppu.stat.into(),
0x42 => self.ppu.pos.scroll_y,
@@ -355,7 +355,7 @@ impl BusIo for Bus {
0x24 => self.snd.ctrl.channel = byte.into(),
0x25 => self.snd.ctrl.output = byte.into(),
0x26 => self.snd.ctrl.status = byte.into(), // FIXME: Should we control which bytes are written to here?
0x30..=0x3F => self.snd.ch3.ram[addr as usize - 0xFF30] = byte,
0x30..=0x3F => self.snd.ch3.wave_ram[addr as usize - 0xFF30] = byte,
0x40 => self.ppu.ctrl = byte.into(),
0x41 => self.ppu.stat.update(byte),
0x42 => self.ppu.pos.scroll_y = byte,