C64: fix duty overflow

just in case
This commit is contained in:
tildearrow 2024-04-24 13:01:02 -05:00
parent fd60d5c2c2
commit 9ba123953e

View file

@ -182,6 +182,7 @@ void DivPlatformC64::tick(bool sysTick) {
chan[i].duty-=chan[i].std.duty.val;
}
}
chan[i].duty&=4095;
rWrite(i*7+2,chan[i].duty&0xff);
rWrite(i*7+3,chan[i].duty>>8);
}