void exidy_sh8253_sound_device::device_start() { common_sh_start(); /* 8253 */ m_freq_to_step = (1 << 24) / SH8253_CLOCK; sh8253_register_state_globals(); }
static DEVICE_START( venture_common_sh_start ) { running_machine *machine = device->machine; DEVICE_START_CALL(common_sh_start); riot = devtag_get_device(machine, "riot"); has_sh8253 = TRUE; has_tms5220 = FALSE; /* determine which sound hardware is installed */ has_mc3417 = (devtag_get_device(device->machine, "cvsd") != NULL); /* 8253 */ freq_to_step = (double)(1 << 24) / (double)SH8253_CLOCK; state_save_register_global(machine, riot_irq_state); sh8253_register_state_globals(device->machine); }