summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/tr606.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/tr606.cpp')
-rw-r--r--src/mame/drivers/tr606.cpp21
1 files changed, 10 insertions, 11 deletions
diff --git a/src/mame/drivers/tr606.cpp b/src/mame/drivers/tr606.cpp
index 970addc505b..6eeb292ea30 100644
--- a/src/mame/drivers/tr606.cpp
+++ b/src/mame/drivers/tr606.cpp
@@ -23,8 +23,8 @@
class tr606_state : public hh_ucom4_state
{
public:
- tr606_state(const machine_config &mconfig, device_type type, const char *tag) :
- hh_ucom4_state(mconfig, type, tag)
+ tr606_state(const machine_config &mconfig, device_type type, const char *tag)
+ : hh_ucom4_state(mconfig, type, tag)
{ }
void tr606(machine_config &config);
@@ -80,22 +80,21 @@ void tr606_state::machine_start()
// register for savestates
}
-void tr606_state::tr606(machine_config &config)
-{
+MACHINE_CONFIG_START(tr606_state::tr606)
+
/* basic machine hardware */
- NEC_D650(config, m_maincpu, TP2_HZ);
+ MCFG_DEVICE_ADD("maincpu", NEC_D650, TP2_HZ)
- timer_device &tp3_clock(TIMER(config, "tp3_clock"));
- tp3_clock.configure_periodic(FUNC(tr606_state::tp3_clock), TP3_PERIOD);
- tp3_clock.set_start_delay(TP3_PERIOD - TP3_LOW);
- TIMER(config, "tp3_clear").configure_periodic(FUNC(tr606_state::tp3_clear), TP3_PERIOD);
+ MCFG_TIMER_DRIVER_ADD_PERIODIC("tp3_clock", tr606_state, tp3_clock, TP3_PERIOD)
+ MCFG_TIMER_START_DELAY(TP3_PERIOD - TP3_LOW)
+ MCFG_TIMER_DRIVER_ADD_PERIODIC("tp3_clear", tr606_state, tp3_clear, TP3_PERIOD)
- TIMER(config, "display_decay").configure_periodic(FUNC(hh_ucom4_state::display_decay_tick), attotime::from_msec(1));
+ MCFG_TIMER_DRIVER_ADD_PERIODIC("display_decay", hh_ucom4_state, display_decay_tick, attotime::from_msec(1))
config.set_default_layout(layout_tr606);
/* sound hardware */
// discrete...
-}
+MACHINE_CONFIG_END