Bit8u adlib_io_read_base(ioport_t port) { #ifdef HAS_YMF262 return YMF262Read(opl3, port); #else return 0xff; #endif }
static IO_READ_PROTO(adlib_read) { AdlibState *s = opaque; uint8_t data; int a = nport & 3; adlib_kill_timers (s); #ifdef HAS_YMF262 data = YMF262Read (0, a); #else data = OPLRead (s->opl, a); #endif return data; }
static uint32_t adlib_read(void *opaque, uint32_t nport) { AdlibState *s = opaque; uint8_t data; int a = nport & 3; adlib_kill_timers (s); #ifdef HAS_YMF262 data = YMF262Read (0, a); #else data = OPLRead (s->opl, a); #endif return data; }