Пример #1
0
INT32 AY8910Read(INT32 chip)
{
	struct AY8910 *PSG = &AYPSG[chip];
	
#if defined FBA_DEBUG
#ifdef __GNUC__ 
	if (!DebugSnd_AY8910Initted) bprintf(PRINT_ERROR, _T("AY8910Read called without init\n"));
	if (chip > num) bprintf(PRINT_ERROR, _T("AY8910Read called with invalid chip number %x\n"), chip);
#endif
#endif

	return AYReadReg(chip,PSG->register_latch);
}
Пример #2
0
int AY8910Read(void)
{
    return AYReadReg(AYPSG.register_latch);
}
Пример #3
0
int AY8910Read(int chip)
{
	struct AY8910 *PSG = &AYPSG[chip];

	return AYReadReg(chip,PSG->register_latch);
}
Пример #4
0
static READ_HANDLER(read_snd) {
  return !AYReadReg(1, 7);
}