summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/tb303.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/tb303.cpp')
-rw-r--r--src/mame/drivers/tb303.cpp16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/mame/drivers/tb303.cpp b/src/mame/drivers/tb303.cpp
index 8fb797b5e9d..569a133ac2d 100644
--- a/src/mame/drivers/tb303.cpp
+++ b/src/mame/drivers/tb303.cpp
@@ -249,8 +249,8 @@ void tb303_state::machine_start()
save_item(NAME(m_ram_we));
}
-MACHINE_CONFIG_START(tb303_state::tb303)
-
+void tb303_state::tb303(machine_config &config)
+{
/* basic machine hardware */
NEC_D650(config, m_maincpu, TP2_HZ);
m_maincpu->read_a().set(FUNC(tb303_state::input_r));
@@ -264,16 +264,18 @@ MACHINE_CONFIG_START(tb303_state::tb303)
m_maincpu->write_h().set(FUNC(tb303_state::switch_w));
m_maincpu->write_i().set(FUNC(tb303_state::strobe_w));
- MCFG_TIMER_DRIVER_ADD_PERIODIC("tp3_clock", tb303_state, tp3_clock, TP3_PERIOD)
- MCFG_TIMER_START_DELAY(TP3_PERIOD - TP3_LOW)
- MCFG_TIMER_DRIVER_ADD_PERIODIC("tp3_clear", tb303_state, tp3_clear, TP3_PERIOD)
+ timer_device &tp3_clock(TIMER(config, "tp3_clock"));
+ tp3_clock.configure_periodic(FUNC(tb303_state::tp3_clock), TP3_PERIOD);
+ tp3_clock.set_start_delay(TP3_PERIOD - TP3_LOW);
+ TIMER(config, "tp3_clear").configure_periodic(FUNC(tb303_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_tb303);
/* sound hardware */
// discrete...
-MACHINE_CONFIG_END
+}