C64: fix duty overflow
just in case
This commit is contained in:
parent
fd60d5c2c2
commit
9ba123953e
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue