fix(apu): implement some obscure behaviour for ch1,2 & 3

This commit is contained in:
2021-10-30 20:04:16 +09:00
parent 2ef8fefbb7
commit 32405c0734
2 changed files with 129 additions and 54 deletions

View File

@@ -223,14 +223,14 @@ pub(super) mod common {
bitfield! {
pub struct FrequencyHigh(u8);
impl Debug;
_initial, _: 7;
_trigger, _: 7;
_length_enable, _: 6;
pub freq_bits, set_freq_bits: 2, 0;
}
impl FrequencyHigh {
pub(crate) fn initial(&self) -> bool {
self._initial()
pub(crate) fn trigger(&self) -> bool {
self._trigger()
}
pub(crate) fn length_enable(&self) -> bool {