TIA: add 10xx effect for selecting shape

This commit is contained in:
tildearrow 2022-01-18 15:12:36 -05:00
parent 1d5277c27b
commit 0356cf2c7a
2 changed files with 12 additions and 0 deletions

View File

@ -183,6 +183,11 @@ int DivPlatformTIA::dispatch(DivCommand c) {
chan[c.chan].freqChanged=true;
break;
}
case DIV_CMD_WAVE:
chan[c.chan].shape=c.value&15;
rWrite(0x15+c.chan,chan[c.chan].shape);
chan[c.chan].freqChanged=true;
break;
case DIV_ALWAYS_SET_VOLUME:
return 0;
break;

View File

@ -374,6 +374,13 @@ bool DivEngine::perSystemPostEffect(int ch, unsigned char effect, unsigned char
break;
}
break;
case DIV_SYSTEM_TIA:
switch (effect) {
case 0x10: // select waveform
dispatchCmd(DivCommand(DIV_CMD_WAVE,ch,effectVal));
break;
}
break;
default:
return false;
}