示例#1
0
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);
}
示例#2
0
文件: opna.cpp 项目: takamichih/np2_t
/**
 * 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;
}
示例#3
0
static REG8 IOINPCALL spb_i188(UINT port) {

	(void)port;
	return((fmtimer.status & 3) | adpcm_status(&adpcm));
}
示例#4
0
文件: boardpx.c 项目: aliaspider/np2
static REG8 IOINPCALL p86_i288(UINT port) {

	(void)port;
	return((g_fmtimer.status & 3) | adpcm_status(&g_adpcm3));
}
示例#5
0
文件: boardpx.c 项目: aliaspider/np2
static REG8 IOINPCALL spb_i088(UINT port) {

	(void)port;
	return((g_fmtimer.status & 3) | adpcm_status(&g_adpcm2));
}