summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/tm990189.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/tm990189.cpp')
-rw-r--r--src/mame/drivers/tm990189.cpp26
1 files changed, 12 insertions, 14 deletions
diff --git a/src/mame/drivers/tm990189.cpp b/src/mame/drivers/tm990189.cpp
index 01c4238e6fa..77a37924400 100644
--- a/src/mame/drivers/tm990189.cpp
+++ b/src/mame/drivers/tm990189.cpp
@@ -151,12 +151,10 @@ public:
DECLARE_WRITE_LINE_MEMBER(sys9901_tapewdata_w);
DECLARE_WRITE8_MEMBER( xmit_callback );
-
- void machine_start_tm990_189() ATTR_COLD;
- void machine_reset_tm990_189();
-
- void machine_start_tm990_189_v() ATTR_COLD;
- void machine_reset_tm990_189_v();
+ DECLARE_MACHINE_START(tm990_189);
+ DECLARE_MACHINE_RESET(tm990_189);
+ DECLARE_MACHINE_START(tm990_189_v);
+ DECLARE_MACHINE_RESET(tm990_189_v);
TIMER_DEVICE_CALLBACK_MEMBER(display_callback);
TIMER_CALLBACK_MEMBER(clear_load);
@@ -179,20 +177,20 @@ private:
#define displayena_duration attotime::from_usec(4500) /* Can anyone confirm this? 74LS123 connected to C=0.1uF and R=100kOhm */
-void tm990189_state::machine_reset_tm990_189()
+MACHINE_RESET_MEMBER(tm990189_state,tm990_189)
{
m_tms9980a->set_ready(ASSERT_LINE);
m_tms9980a->set_hold(CLEAR_LINE);
hold_load();
}
-void tm990189_state::machine_start_tm990_189()
+MACHINE_START_MEMBER(tm990189_state,tm990_189)
{
m_digits.resolve();
m_displayena_timer = machine().scheduler().timer_alloc(timer_expired_delegate());
}
-void tm990189_state::machine_start_tm990_189_v()
+MACHINE_START_MEMBER(tm990189_state,tm990_189_v)
{
m_digits.resolve();
m_displayena_timer = machine().scheduler().timer_alloc(timer_expired_delegate());
@@ -203,7 +201,7 @@ void tm990189_state::machine_start_tm990_189_v()
m_joy2y_timer = machine().scheduler().timer_alloc(timer_expired_delegate());
}
-void tm990189_state::machine_reset_tm990_189_v()
+MACHINE_RESET_MEMBER(tm990189_state,tm990_189_v)
{
m_tms9980a->set_ready(ASSERT_LINE);
m_tms9980a->set_hold(CLEAR_LINE);
@@ -818,8 +816,8 @@ MACHINE_CONFIG_START(tm990189_state::tm990_189)
MCFG_TMS99xx_ADD("maincpu", TMS9980A, 2000000, tm990_189_memmap, tm990_189_cru_map)
MCFG_TMS99xx_EXTOP_HANDLER( WRITE8(*this, tm990189_state, external_operation) )
- set_machine_start_cb(config, driver_callback_delegate(&machine_start_tm990_189, this));
- set_machine_reset_cb(config, driver_callback_delegate(&machine_reset_tm990_189, this));
+ MCFG_MACHINE_START_OVERRIDE(tm990189_state, tm990_189 )
+ MCFG_MACHINE_RESET_OVERRIDE(tm990189_state, tm990_189 )
/* Video hardware */
MCFG_DEFAULT_LAYOUT(layout_tm990189)
@@ -873,8 +871,8 @@ MACHINE_CONFIG_START(tm990189_state::tm990_189_v)
MCFG_TMS99xx_ADD("maincpu", TMS9980A, 2000000, tm990_189_v_memmap, tm990_189_cru_map)
MCFG_TMS99xx_EXTOP_HANDLER( WRITE8(*this, tm990189_state, external_operation) )
- set_machine_start_cb(config, driver_callback_delegate(&machine_start_tm990_189_v, this));
- set_machine_reset_cb(config, driver_callback_delegate(&machine_reset_tm990_189_v, this));
+ MCFG_MACHINE_START_OVERRIDE(tm990189_state, tm990_189_v )
+ MCFG_MACHINE_RESET_OVERRIDE(tm990189_state, tm990_189_v )
/* video hardware */
MCFG_DEVICE_ADD( "tms9918", TMS9918, XTAL(10'738'635) / 2 )