YM2610(B): AY unification

as of now the SSG part of these chips is handled by a DivPlatformAY8910
within the DivPlatformYM2610.
this means less code duplication and therefore prepares for
OPN/OPNA support.
This commit is contained in:
tildearrow 2022-04-06 18:03:30 -05:00
parent 878d3fab1f
commit 2e327953e8
9 changed files with 96 additions and 421 deletions

View file

@ -316,9 +316,12 @@ void DivPlatformYM2610Ext::forceIns() {
for (int i=4; i<14; i++) {
chan[i].insChanged=true;
}
immWrite(0x0b,ayEnvPeriod);
immWrite(0x0c,ayEnvPeriod>>8);
immWrite(0x0d,ayEnvMode);
ay->forceIns();
ay->flushWrites();
for (DivRegWrite& i: ay->getRegisterWrites()) {
immWrite(i.addr&15,i.val);
}
ay->getRegisterWrites().clear();
for (int i=0; i<4; i++) {
opChan[i].insChanged=true;
if (opChan[i].active) {