diff options
Diffstat (limited to 'src/mame/drivers/st_mp100.cpp')
-rw-r--r-- | src/mame/drivers/st_mp100.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/mame/drivers/st_mp100.cpp b/src/mame/drivers/st_mp100.cpp index 15b68ba07ed..6b6fc7f13cf 100644 --- a/src/mame/drivers/st_mp100.cpp +++ b/src/mame/drivers/st_mp100.cpp @@ -709,10 +709,11 @@ TIMER_DEVICE_CALLBACK_MEMBER( st_mp100_state::u11_timer ) m_pia_u11->ca1_w(m_u11_timer); } -MACHINE_CONFIG_START(st_mp100_state::st_mp100) +void st_mp100_state::st_mp100(machine_config &config) +{ /* basic machine hardware */ - MCFG_DEVICE_ADD("maincpu", M6800, 1000000) // no xtal, just 2 chips forming a random oscillator - MCFG_DEVICE_PROGRAM_MAP(st_mp100_map) + M6800(config, m_maincpu, 1000000); // no xtal, just 2 chips forming a random oscillator + m_maincpu->set_addrmap(AS_PROGRAM, &st_mp100_state::st_mp100_map); NVRAM(config, "nvram", nvram_device::DEFAULT_ALL_0); @@ -743,7 +744,7 @@ MACHINE_CONFIG_START(st_mp100_state::st_mp100) 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_mp100_state::u11_timer), attotime::from_hz(634)); // 555 timer*2 -MACHINE_CONFIG_END +} /*-------------------------------- |