Example #1
0
static WRITE16_HANDLER( othunder_sound_w )
{
	othunder_state *state = space->machine().driver_data<othunder_state>();
	if (offset == 0)
		tc0140syt_port_w(state->m_tc0140syt, 0, data & 0xff);
	else if (offset == 1)
		tc0140syt_comm_w(state->m_tc0140syt, 0, data & 0xff);
}
Example #2
0
static WRITE16_HANDLER( warriorb_sound_w )
{
	warriorb_state *state = space->machine->driver_data<warriorb_state>();

	if (offset == 0)
		tc0140syt_port_w(state->tc0140syt, 0, data & 0xff);
	else if (offset == 1)
		tc0140syt_comm_w(state->tc0140syt, 0, data & 0xff);
}
Example #3
0
static WRITE16_HANDLER( ninjaw_sound_w )
{
	ninjaw_state *state = space->machine->driver_data<ninjaw_state>();

	if (offset == 0)
		tc0140syt_port_w(state->tc0140syt, 0, data & 0xff);
	else if (offset == 1)
		tc0140syt_comm_w(state->tc0140syt, 0, data & 0xff);

#ifdef MAME_DEBUG
	if (data & 0xff00)
		popmessage("ninjaw_sound_w to high byte: %04x", data);
#endif
}