fix fb confilcts

This commit is contained in:
Eknous-P 2025-05-20 22:15:34 +04:00 committed by tildearrow
parent d7c79a85d9
commit f627b5774a

View file

@ -1541,7 +1541,8 @@ int DivPlatformGenesis::dispatch(DivCommand c) {
break; break;
case DIV_CMD_FM_ALG: case DIV_CMD_FM_ALG:
if (c.value>7) break; if (c.value>7) break;
rWrite(ADDR_FB_ALG+chanOffs[c.chan], c.value&7); chan[c.chan].state.alg=c.value&7;
rWrite(ADDR_FB_ALG+chanOffs[c.chan], (chan[c.chan].state.fb&7<<3)|(chan[c.chan].state.alg&7));
default: default:
//printf("WARNING: unimplemented command %d\n",c.cmd); //printf("WARNING: unimplemented command %d\n",c.cmd);
break; break;