diff options
Diffstat (limited to 'src/mame/drivers/cosmicos.cpp')
-rw-r--r-- | src/mame/drivers/cosmicos.cpp | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/mame/drivers/cosmicos.cpp b/src/mame/drivers/cosmicos.cpp index 628e0446309..f3aa02eba41 100644 --- a/src/mame/drivers/cosmicos.cpp +++ b/src/mame/drivers/cosmicos.cpp @@ -524,16 +524,17 @@ MACHINE_CONFIG_START(cosmicos_state::cosmicos) /* video hardware */ config.set_default_layout(layout_cosmicos); - DM9368(config, m_led, 0); - TIMER(config, "digit").configure_periodic(FUNC(cosmicos_state::digit_tick), attotime::from_hz(100)); - TIMER(config, "interrupt").configure_periodic(FUNC(cosmicos_state::int_tick), attotime::from_hz(1000)); + MCFG_DEVICE_ADD(DM9368_TAG, DM9368, 0) + MCFG_TIMER_DRIVER_ADD_PERIODIC("digit", cosmicos_state, digit_tick, attotime::from_hz(100)) + MCFG_TIMER_DRIVER_ADD_PERIODIC("interrupt", cosmicos_state, int_tick, attotime::from_hz(1000)) SCREEN(config, SCREEN_TAG, SCREEN_TYPE_RASTER); /* sound hardware */ SPEAKER(config, "mono").front_center(); - SPEAKER_SOUND(config, m_speaker).add_route(ALL_OUTPUTS, "mono", 0.25); + MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) + MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) CDP1864(config, m_cti, 1.75_MHz_XTAL).set_screen(SCREEN_TAG); m_cti->inlace_cb().set_constant(0); @@ -547,9 +548,9 @@ MACHINE_CONFIG_START(cosmicos_state::cosmicos) m_cti->add_route(ALL_OUTPUTS, "mono", 0.25); /* devices */ - MCFG_QUICKLOAD_ADD("quickload", cosmicos_state, cosmicos, "bin") - CASSETTE(config, m_cassette); - m_cassette->set_default_state(CASSETTE_STOPPED | CASSETTE_MOTOR_ENABLED | CASSETTE_SPEAKER_MUTED); + MCFG_QUICKLOAD_ADD("quickload", cosmicos_state, cosmicos, "bin", 0) + MCFG_CASSETTE_ADD("cassette") + MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_MOTOR_ENABLED | CASSETTE_SPEAKER_MUTED) /* internal ram */ RAM(config, RAM_TAG).set_default_size("256").set_extra_options("4K,48K"); |