even more fixes

This commit is contained in:
tildearrow 2022-08-23 02:31:39 -05:00
parent 226f43fea3
commit e158591ccb
4 changed files with 8 additions and 10 deletions

View file

@ -92,7 +92,7 @@ void DivPlatformTIA::tick(bool sysTick) {
if (!chan[i].inPorta) {
if (chan[i].std.arp.val<0 && (!(chan[i].std.arp.val&0x40000000))) {
chan[i].baseFreq=0x80000000|(chan[i].std.arp.val|0x40000000);
} else if (chan[i].std.arp.val&0x40000000) {
} else if (chan[i].std.arp.val>=0 && chan[i].std.arp.val&0x40000000) {
chan[i].baseFreq=0x80000000|(chan[i].std.arp.val&(~0x40000000));
} else {
chan[i].baseFreq=(chan[i].note+chan[i].std.arp.val)<<8;