static MACHINE_INIT( videopin ) { timer_set(cpu_getscanlinetime(32), 32, interrupt_callback); /* both output latches are cleared on reset */ videopin_out1_w(0, 0); videopin_out2_w(0, 0); }
static MACHINE_RESET( videopin ) { timer_set(video_screen_get_time_until_pos(0, 32, 0), NULL, 32, interrupt_callback); /* both output latches are cleared on reset */ videopin_out1_w(0, 0); videopin_out2_w(0, 0); }
static MACHINE_RESET( videopin ) { const device_config *discrete = devtag_get_device(machine, "discrete"); timer_set(machine, video_screen_get_time_until_pos(machine->primary_screen, 32, 0), NULL, 32, interrupt_callback); /* both output latches are cleared on reset */ videopin_out1_w(discrete, 0, 0); videopin_out2_w(discrete, 0, 0); }
static MACHINE_RESET( videopin ) { device_t *discrete = machine.device("discrete"); machine.scheduler().timer_set(machine.primary_screen->time_until_pos(32), FUNC(interrupt_callback), 32); /* both output latches are cleared on reset */ videopin_out1_w(discrete, 0, 0); videopin_out2_w(discrete, 0, 0); }