diff options
Diffstat (limited to 'src/mame/drivers/st_mp200.cpp')
-rw-r--r-- | src/mame/drivers/st_mp200.cpp | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/src/mame/drivers/st_mp200.cpp b/src/mame/drivers/st_mp200.cpp index 2584e2948b0..d26b452066d 100644 --- a/src/mame/drivers/st_mp200.cpp +++ b/src/mame/drivers/st_mp200.cpp @@ -580,11 +580,10 @@ TIMER_DEVICE_CALLBACK_MEMBER( st_mp200_state::u11_timer ) m_pia_u11->ca1_w(m_u11_timer); } -void st_mp200_state::st_mp200(machine_config &config) -{ +MACHINE_CONFIG_START(st_mp200_state::st_mp200) /* basic machine hardware */ - M6800(config, m_maincpu, 1000000); // no xtal, just 2 chips forming a random oscillator - m_maincpu->set_addrmap(AS_PROGRAM, &st_mp200_state::st_mp200_map); + MCFG_DEVICE_ADD("maincpu", M6800, 1000000) // no xtal, just 2 chips forming a random oscillator + MCFG_DEVICE_PROGRAM_MAP(st_mp200_map) NVRAM(config, "nvram", nvram_device::DEFAULT_ALL_0); @@ -604,7 +603,7 @@ void st_mp200_state::st_mp200(machine_config &config) m_pia_u10->cb2_handler().set(FUNC(st_mp200_state::u10_cb2_w)); m_pia_u10->irqa_handler().set_inputline("maincpu", M6800_IRQ_LINE); m_pia_u10->irqb_handler().set_inputline("maincpu", M6800_IRQ_LINE); - TIMER(config, "timer_x").configure_periodic(FUNC(st_mp200_state::timer_x), attotime::from_hz(120)); // mains freq*2 + MCFG_TIMER_DRIVER_ADD_PERIODIC("timer_x", st_mp200_state, timer_x, attotime::from_hz(120)) // mains freq*2 PIA6821(config, m_pia_u11, 0); m_pia_u11->readpa_handler().set(FUNC(st_mp200_state::u11_a_r)); @@ -614,15 +613,15 @@ void st_mp200_state::st_mp200(machine_config &config) m_pia_u11->cb2_handler().set(FUNC(st_mp200_state::u11_cb2_w)); m_pia_u11->irqa_handler().set_inputline("maincpu", M6800_IRQ_LINE); m_pia_u11->irqb_handler().set_inputline("maincpu", M6800_IRQ_LINE); - TIMER(config, "timer_d").configure_periodic(FUNC(st_mp200_state::u11_timer), attotime::from_hz(634)); // 555 timer*2 -} + MCFG_TIMER_DRIVER_ADD_PERIODIC("timer_d", st_mp200_state, u11_timer, attotime::from_hz(634)) // 555 timer*2 +MACHINE_CONFIG_END -void st_mp200_state::st_mp201(machine_config &config) -{ +MACHINE_CONFIG_START(st_mp200_state::st_mp201) st_mp200(config); SPEAKER(config, "mono").front_center(); - S14001A(config, m_s14001a, S14001_CLOCK).add_route(ALL_OUTPUTS, "mono", 1.00); -} + MCFG_DEVICE_ADD("speech", S14001A, S14001_CLOCK) + MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) +MACHINE_CONFIG_END /*-------------------------------- |