C64: filter toggle macro

This commit is contained in:
tildearrow 2024-07-05 17:03:01 -05:00
parent 8f577fb669
commit c9b2172c4f
2 changed files with 7 additions and 2 deletions

View file

@ -222,6 +222,10 @@ void DivPlatformC64::tick(bool sysTick) {
filtRes=chan[i].std.ex2.val&15;
willUpdateFilter=true;
}
if (chan[i].std.ex3.had) {
chan[i].filter=(chan[i].std.ex3.val&1);
willUpdateFilter=true;
}
if (chan[i].std.ex4.had) {
chan[i].gate=chan[i].std.ex4.val&1;
chan[i].sync=chan[i].std.ex4.val&2;