feat(sound): implement NR10
This commit is contained in:
@@ -220,6 +220,7 @@ impl BusIo for Bus {
|
||||
0x06 => self.timer.modulo,
|
||||
0x07 => self.timer.ctrl.into(),
|
||||
0x0F => self.interrupt_flag().into(),
|
||||
0x10 => self.sound.ch1.sweep.into(),
|
||||
0x11 => self.sound.ch1.duty.into(),
|
||||
0x12 => self.sound.ch1.envelope.into(),
|
||||
0x14 => self.sound.ch1.freq_hi.into(),
|
||||
@@ -324,6 +325,7 @@ impl BusIo for Bus {
|
||||
0x06 => self.timer.modulo = byte,
|
||||
0x07 => self.timer.ctrl = byte.into(),
|
||||
0x0F => self.set_interrupt_flag(byte),
|
||||
0x10 => self.sound.ch1.sweep = byte.into(),
|
||||
0x11 => self.sound.ch1.duty = byte.into(),
|
||||
0x12 => self.sound.ch1.envelope = byte.into(),
|
||||
0x13 => self.sound.ch1.freq_lo = byte.into(),
|
||||
|
Reference in New Issue
Block a user