feat(sound): implement NR10

This commit is contained in:
2021-06-14 23:51:37 -05:00
parent 6a7ff66274
commit e45c13f719
2 changed files with 59 additions and 0 deletions

View File

@@ -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(),