Exemplo n.º 1
0
static WRITE8_DEVICE_HANDLER( r6532_portb_w )
{
	exidy_sound_state *state = get_safe_token(device);
	if (state->m_tms != NULL)
	{
		tms5220_rsq_w(state->m_tms, data & 0x01);
		tms5220_wsq_w(state->m_tms, (data >> 1) & 0x01);
	}
Exemplo n.º 2
0
static WRITE8_DEVICE_HANDLER( r6532_portb_w )
{
	if (has_tms5220)
	{
		running_device *tms = devtag_get_device(device->machine, "tms");

		tms5220_rsq_w(tms, data & 0x01);
		tms5220_wsq_w(tms, (data >> 1) & 0x01);
	}
}
Exemplo n.º 3
0
static WRITE8_HANDLER(tms7041_portb_w)
{
	exelv_state *state = space->machine().driver_data<exelv_state>();
	device_t *tms5220c = space->machine().device( "tms5220c" );

	logerror("tms7041_portb_w: data = 0x%02x\n", data);

	tms5220_wsq_w( tms5220c, ( data & 0x01 ) ? 1 : 0 );
	tms5220_rsq_w( tms5220c, ( data & 0x02 ) ? 1 : 0 );

	cputag_set_input_line(space->machine(), "maincpu", TMS7000_IRQ1_LINE, ( data & 0x04 ) ? CLEAR_LINE : ASSERT_LINE);

	/* Check for low->high transition on B6 */
	if ( ! ( state->m_tms7041_portb & 0x40 ) && ( data & 0x40 ) )
	{
		logerror("wx319 write 0x%02x\n", state->m_tms7041_portc);
		state->m_wx319 = state->m_tms7041_portc;
	}

	state->m_tms7041_portb = data;
}