feat(snd): implement ch4
This commit is contained in:
@@ -231,6 +231,10 @@ impl BusIo for Bus {
|
||||
0x1B => self.snd.ch3.len,
|
||||
0x1C => self.snd.ch3.volume(),
|
||||
0x1E => self.snd.ch3.freq_hi.into(),
|
||||
0x20 => self.snd.ch4.len(),
|
||||
0x21 => self.snd.ch4.envelope.into(),
|
||||
0x22 => self.snd.ch4.poly.into(),
|
||||
0x23 => self.snd.ch4.freq_data.into(),
|
||||
0x24 => self.snd.ctrl.channel.into(),
|
||||
0x25 => self.snd.ctrl.output.into(),
|
||||
0x26 => self.snd.ctrl.status.into(),
|
||||
@@ -344,6 +348,10 @@ impl BusIo for Bus {
|
||||
0x1C => self.snd.ch3.set_volume(byte),
|
||||
0x1D => self.snd.ch3.freq_lo = byte,
|
||||
0x1E => self.snd.ch3.freq_hi = byte.into(),
|
||||
0x20 => self.snd.ch4.set_len(byte),
|
||||
0x21 => self.snd.ch4.envelope = byte.into(),
|
||||
0x22 => self.snd.ch4.poly = byte.into(),
|
||||
0x23 => self.snd.ch4.freq_data = byte.into(),
|
||||
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?
|
||||
|
Reference in New Issue
Block a user