void adlib_io_write_base(ioport_t port, Bit8u value) { adlib_time_last = GETusTIME(0); #ifdef HAS_YMF262 YMF262Write(opl3, port, value); #endif }
static IO_WRITE_PROTO (adlib_write) { AdlibState *s = opaque; int a = nport & 3; s->active = 1; AUD_set_active_out (s->voice, 1); adlib_kill_timers (s); #ifdef HAS_YMF262 YMF262Write (0, a, val); #else OPLWrite (s->opl, a, val); #endif }
static void adlib_write(void *opaque, uint32_t nport, uint32_t val) { AdlibState *s = opaque; int a = nport & 3; s->active = 1; AUD_set_active_out (s->voice, 1); adlib_kill_timers (s); #ifdef HAS_YMF262 YMF262Write (0, a, val); #else OPLWrite (s->opl, a, val); #endif }