mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-16 17:45:10 +00:00
huh?
This commit is contained in:
parent
dd80cb8b55
commit
f6b34a5bb0
1 changed files with 4 additions and 5 deletions
|
@ -144,19 +144,18 @@ int DivPlatformGenesisExt::dispatch(DivCommand c) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// what the heck!
|
// what the heck!
|
||||||
|
// TODO: rework!
|
||||||
if (!opChan[ch].portaPause) {
|
if (!opChan[ch].portaPause) {
|
||||||
opChan[ch].freqChanged=true;
|
|
||||||
if ((newFreq&0x7ff)>1288) {
|
if ((newFreq&0x7ff)>1288) {
|
||||||
newFreq=(644)|((newFreq+0x800)&0xf800);
|
newFreq=(644)|((newFreq+0x800)&0xf800);
|
||||||
opChan[ch].portaPause=true;
|
opChan[ch].portaPause=true;
|
||||||
opChan[ch].freqChanged=false;
|
|
||||||
return2=false;
|
return2=false;
|
||||||
}
|
} else if ((newFreq&0x7ff)<644) {
|
||||||
if ((newFreq&0x7ff)<644) {
|
|
||||||
newFreq=(1287)|((newFreq-0x800)&0xf800);
|
newFreq=(1287)|((newFreq-0x800)&0xf800);
|
||||||
opChan[ch].portaPause=true;
|
opChan[ch].portaPause=true;
|
||||||
opChan[ch].freqChanged=false;
|
|
||||||
return2=false;
|
return2=false;
|
||||||
|
} else {
|
||||||
|
opChan[ch].freqChanged=true;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
opChan[ch].portaPause=false;
|
opChan[ch].portaPause=false;
|
||||||
|
|
Loading…
Reference in a new issue