implement 11xx effect on FM platforms

please no ch 3
This commit is contained in:
tildearrow 2022-02-01 15:12:06 -05:00
parent 7c9beca93f
commit f29d4bce1b
3 changed files with 21 additions and 0 deletions

View file

@ -552,6 +552,12 @@ int DivPlatformYM2610::dispatch(DivCommand c) {
rWrite(0x22,(c.value&7)|((c.value>>4)<<3));
break;
}
case DIV_CMD_FM_FB: {
if (c.chan>3) break;
chan[c.chan].state.fb=c.value&7;
rWrite(chanOffs[c.chan]+ADDR_FB_ALG,(chan[c.chan].state.alg&7)|(chan[c.chan].state.fb<<3));
break;
}
case DIV_CMD_FM_MULT: {
if (c.chan>3) break;
unsigned short baseAddr=chanOffs[c.chan]|opOffs[orderedOps[c.value]];