static REG8 IOINPCALL opnac_i18c(UINT port) { if (opn.extend) { return((fmtimer.status & 3) | adpcm_status(&adpcm)); // return((fmtimer.status & 3) | (opn.adpcmmask & 8)); } (void)port; return(0xff); }
/** * Status * @param[in] opna The instance * @return Status */ REG8 opna_readExtendedStatus(POPNA opna) { const UINT8 cCaps = opna->s.cCaps; REG8 ret = 0; if (cCaps & OPNA_HAS_ADPCM) { ret = adpcm_status(&opna->adpcm); } else { ret = opna->s.adpcmmask & 8; } if (cCaps & OPNA_HAS_TIMER) { ret |= opna->s.status; } return ret; }
static REG8 IOINPCALL spb_i188(UINT port) { (void)port; return((fmtimer.status & 3) | adpcm_status(&adpcm)); }
static REG8 IOINPCALL p86_i288(UINT port) { (void)port; return((g_fmtimer.status & 3) | adpcm_status(&g_adpcm3)); }
static REG8 IOINPCALL spb_i088(UINT port) { (void)port; return((g_fmtimer.status & 3) | adpcm_status(&g_adpcm2)); }