summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/rzone.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/rzone.cpp')
-rw-r--r--src/mame/drivers/rzone.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/src/mame/drivers/rzone.cpp b/src/mame/drivers/rzone.cpp
index fa6905d839d..3dada88ed57 100644
--- a/src/mame/drivers/rzone.cpp
+++ b/src/mame/drivers/rzone.cpp
@@ -245,11 +245,11 @@ INPUT_PORTS_END
MACHINE_CONFIG_START(rzone_state::rzbatfor)
/* basic machine hardware */
- MCFG_DEVICE_ADD("maincpu", SM512) // no external XTAL
- MCFG_SM510_WRITE_SEGS_CB(WRITE16(*this, hh_sm510_state, sm510_lcd_segment_w))
- MCFG_SM510_READ_K_CB(READ8(*this, rzone_state, input_r))
- MCFG_SM510_WRITE_S_CB(WRITE8(*this, rzone_state, t2_write_s))
- MCFG_SM510_WRITE_R_CB(WRITE8(*this, rzone_state, t2_write_r))
+ SM512(config, m_maincpu); // no external XTAL
+ write_segs(config);
+ m_maincpu->read_k().set(FUNC(rzone_state::input_r));
+ m_maincpu->write_s().set(FUNC(rzone_state::t2_write_s));
+ m_maincpu->write_r().set(FUNC(rzone_state::t2_write_r));
/* video hardware */
MCFG_SCREEN_SVG_ADD("screen", "svg")
@@ -270,12 +270,12 @@ MACHINE_CONFIG_END
MACHINE_CONFIG_START(rzone_state::rztoshden)
/* basic machine hardware */
- MCFG_DEVICE_ADD("maincpu", SM510)
- MCFG_SM510_R_MASK_OPTION(SM510_R_CONTROL_OUTPUT)
- MCFG_SM510_WRITE_SEGS_CB(WRITE16(*this, hh_sm510_state, sm510_lcd_segment_w))
- MCFG_SM510_READ_K_CB(READ8(*this, rzone_state, input_r))
- MCFG_SM510_WRITE_S_CB(WRITE8(*this, rzone_state, t1_write_s))
- MCFG_SM510_WRITE_R_CB(WRITE8(*this, rzone_state, t1_write_r))
+ SM510(config, m_maincpu);
+ m_maincpu->set_r_mask_option(SM510_R_CONTROL_OUTPUT);
+ write_segs(config);
+ m_maincpu->read_k().set(FUNC(rzone_state::input_r));
+ m_maincpu->write_s().set(FUNC(rzone_state::t1_write_s));
+ m_maincpu->write_r().set(FUNC(rzone_state::t1_write_r));
/* video hardware */
MCFG_SCREEN_SVG_ADD("screen", "svg")
@@ -296,12 +296,12 @@ MACHINE_CONFIG_END
MACHINE_CONFIG_START(rzone_state::rzindy500)
/* basic machine hardware */
- MCFG_DEVICE_ADD("maincpu", SM510) // no external XTAL
- MCFG_SM510_R_MASK_OPTION(SM510_R_CONTROL_OUTPUT) // confirmed
- MCFG_SM510_WRITE_SEGS_CB(WRITE16(*this, hh_sm510_state, sm510_lcd_segment_w))
- MCFG_SM510_READ_K_CB(READ8(*this, rzone_state, input_r))
- MCFG_SM510_WRITE_S_CB(WRITE8(*this, rzone_state, t1_write_s))
- MCFG_SM510_WRITE_R_CB(WRITE8(*this, rzone_state, t1_write_r))
+ SM510(config, m_maincpu); // no external XTAL
+ m_maincpu->set_r_mask_option(SM510_R_CONTROL_OUTPUT); // confirmed
+ write_segs(config);
+ m_maincpu->read_k().set(FUNC(rzone_state::input_r));
+ m_maincpu->write_s().set(FUNC(rzone_state::t1_write_s));
+ m_maincpu->write_r().set(FUNC(rzone_state::t1_write_r));
/* video hardware */
MCFG_SCREEN_SVG_ADD("screen", "svg")