예제 #1
0
파일: vertigo.c 프로젝트: clobber/UME
void vertigo_update_irq(device_t *device)
{
	vertigo_state *state = device->machine().driver_data<vertigo_state>();
	if (state->m_irq_state < 7)
		device->machine().device("maincpu")->execute().set_input_line(state->m_irq_state ^ 7, CLEAR_LINE);

	state->m_irq_state = ttl74148_output_r(device);

	if (state->m_irq_state < 7)
		device->machine().device("maincpu")->execute().set_input_line(state->m_irq_state ^ 7, ASSERT_LINE);
}
예제 #2
0
void vertigo_update_irq(device_t *device)
{
	vertigo_state *state = device->machine->driver_data<vertigo_state>();
	if (state->irq_state < 7)
		cputag_set_input_line(device->machine, "maincpu", state->irq_state ^ 7, CLEAR_LINE);

	state->irq_state = ttl74148_output_r(device);

	if (state->irq_state < 7)
		cputag_set_input_line(device->machine, "maincpu", state->irq_state ^ 7, ASSERT_LINE);
}