diff options
Diffstat (limited to 'src/mame/drivers/inderp.cpp')
-rw-r--r-- | src/mame/drivers/inderp.cpp | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/src/mame/drivers/inderp.cpp b/src/mame/drivers/inderp.cpp index caa7b7b3f14..89128a2074f 100644 --- a/src/mame/drivers/inderp.cpp +++ b/src/mame/drivers/inderp.cpp @@ -197,22 +197,21 @@ WRITE_LINE_MEMBER( inderp_state::clock_tick ) m_maincpu->set_input_line(M6504_IRQ_LINE, ASSERT_LINE); } -void inderp_state::inderp(machine_config &config) -{ +MACHINE_CONFIG_START(inderp_state::inderp) /* basic machine hardware */ - M6504(config, m_maincpu, 434000); // possible calculation of frequency-derived time constant 100k res and 10pf cap - m_maincpu->set_addrmap(AS_PROGRAM, &inderp_state::maincpu_map); + MCFG_DEVICE_ADD("maincpu", M6504, 434000) // possible calculation of frequency-derived time constant 100k res and 10pf cap + MCFG_DEVICE_PROGRAM_MAP(maincpu_map) - clock_device &cpoint_clock(CLOCK(config, "cpoint_clock", 200)); // crosspoint detector - cpoint_clock.signal_handler().set(FUNC(inderp_state::clock_tick)); + MCFG_DEVICE_ADD("cpoint_clock", CLOCK, 200) // crosspoint detector + MCFG_CLOCK_SIGNAL_HANDLER(WRITELINE(*this, inderp_state, clock_tick)) /* video hardware */ - //config.set_default_layout() + //MCFG_DEFAULT_LAYOUT() /* sound hardware */ //discrete ? genpin_audio(config); -} +MACHINE_CONFIG_END ROM_START(centauri) |