示例#1
0
static INTERRUPT_GEN( gaplus_interrupt_1 )
{
    device_t *io58xx = device->machine().device("58xx");
    device_t *io56xx = device->machine().device("56xx");

    irq0_line_assert(device);	// this also checks if irq is enabled - IMPORTANT!
    // so don't replace with cputag_set_input_line(machine, "maincpu", 0, ASSERT_LINE);

    if (!namcoio_read_reset_line(io58xx))		/* give the cpu a tiny bit of time to write the command before processing it */
        device->machine().scheduler().timer_set(attotime::from_usec(50), FUNC(namcoio_run));

    if (!namcoio_read_reset_line(io56xx))		/* give the cpu a tiny bit of time to write the command before processing it */
        device->machine().scheduler().timer_set(attotime::from_usec(50), FUNC(namcoio_run), 1);

}
示例#2
0
static INTERRUPT_GEN( gaplus_interrupt_1 )
{
	running_device *io58xx = device->machine->device("58xx");
	running_device *io56xx = device->machine->device("56xx");

	irq0_line_assert(device);	// this also checks if irq is enabled - IMPORTANT!
								// so don't replace with cputag_set_input_line(machine, "maincpu", 0, ASSERT_LINE);

	if (!namcoio_read_reset_line(io58xx))		/* give the cpu a tiny bit of time to write the command before processing it */
		timer_set(device->machine, ATTOTIME_IN_USEC(50), NULL, 0, namcoio_run);

	if (!namcoio_read_reset_line(io56xx))		/* give the cpu a tiny bit of time to write the command before processing it */
		timer_set(device->machine, ATTOTIME_IN_USEC(50), NULL, 1, namcoio_run);

}