summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/m72.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/m72.cpp')
-rw-r--r--src/mame/drivers/m72.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/mame/drivers/m72.cpp b/src/mame/drivers/m72.cpp
index 030e082e482..bc0108baaaa 100644
--- a/src/mame/drivers/m72.cpp
+++ b/src/mame/drivers/m72.cpp
@@ -212,7 +212,7 @@ void m72_state::machine_start()
m_scanline_timer = machine().scheduler().timer_alloc(timer_expired_delegate(FUNC(m72_state::scanline_interrupt),this));
}
-MACHINE_START_MEMBER(m72_state,kengo)
+void m72_state::machine_start_kengo()
{
m_scanline_timer = machine().scheduler().timer_alloc(timer_expired_delegate(FUNC(m72_state::kengo_scanline_interrupt),this));
}
@@ -232,7 +232,7 @@ void m72_state::machine_reset()
machine().scheduler().synchronize(timer_expired_delegate(FUNC(m72_state::synch_callback),this));
}
-MACHINE_RESET_MEMBER(m72_state,kengo)
+void m72_state::machine_reset_kengo()
{
m_scanline_timer->adjust(m_screen->time_until_pos(0));
}
@@ -1902,7 +1902,7 @@ MACHINE_CONFIG_START(m72_state::m72_base)
MCFG_SCREEN_UPDATE_DRIVER(m72_state, screen_update)
MCFG_SCREEN_PALETTE("palette")
- MCFG_VIDEO_START_OVERRIDE(m72_state,m72)
+ set_video_start_cb(config, driver_callback_delegate(&video_start_m72, this));
m72_audio_chips(config);
MACHINE_CONFIG_END
@@ -1977,7 +1977,7 @@ MACHINE_CONFIG_START(m72_state::m81_hharry)
MCFG_DEVICE_IO_MAP(rtype2_sound_portmap)
MCFG_DEVICE_PERIODIC_INT_DRIVER(m72_state, nmi_line_pulse, 128*55)
- MCFG_VIDEO_START_OVERRIDE(m72_state,hharry)
+ set_video_start_cb(config, driver_callback_delegate(&video_start_hharry, this));
MCFG_SCREEN_MODIFY("screen")
MCFG_SCREEN_UPDATE_DRIVER(m72_state, screen_update_m81)
@@ -1989,7 +1989,7 @@ MACHINE_CONFIG_START(m72_state::m81_xmultipl)
MCFG_DEVICE_MODIFY("maincpu")
MCFG_DEVICE_PROGRAM_MAP(xmultipl_map)
- MCFG_VIDEO_START_OVERRIDE(m72_state,xmultipl) // different offsets
+ set_video_start_cb(config, driver_callback_delegate(&video_start_xmultipl, this)); // different offsets
MACHINE_CONFIG_END
MACHINE_CONFIG_START(m72_state::m81_dbreed)
@@ -2027,7 +2027,7 @@ MACHINE_CONFIG_START(m72_state::rtype2)
MCFG_SCREEN_UPDATE_DRIVER(m72_state, screen_update)
MCFG_SCREEN_PALETTE("palette")
- MCFG_VIDEO_START_OVERRIDE(m72_state,rtype2)
+ set_video_start_cb(config, driver_callback_delegate(&video_start_rtype2, this));
m72_audio_chips(config);
MACHINE_CONFIG_END
@@ -2039,7 +2039,7 @@ MACHINE_CONFIG_START(m72_state::hharryu)
MCFG_DEVICE_MODIFY("maincpu")
MCFG_DEVICE_PROGRAM_MAP(hharryu_map)
- MCFG_VIDEO_START_OVERRIDE(m72_state,hharryu)
+ set_video_start_cb(config, driver_callback_delegate(&video_start_hharryu, this));
MACHINE_CONFIG_END
@@ -2058,8 +2058,8 @@ MACHINE_CONFIG_START(m72_state::cosmccop)
MCFG_DEVICE_PERIODIC_INT_DRIVER(m72_state, nmi_line_pulse, 128*55) /* clocked by V1? (Vigilante) */
/* IRQs are generated by main Z80 and YM2151 */
- MCFG_MACHINE_START_OVERRIDE(m72_state,kengo)
- MCFG_MACHINE_RESET_OVERRIDE(m72_state,kengo)
+ set_machine_start_cb(config, driver_callback_delegate(&machine_start_kengo, this));
+ set_machine_reset_cb(config, driver_callback_delegate(&machine_reset_kengo, this));
// upd71059c isn't needed beacuse the V35 has its own IRQ controller
@@ -2072,7 +2072,7 @@ MACHINE_CONFIG_START(m72_state::cosmccop)
MCFG_SCREEN_UPDATE_DRIVER(m72_state, screen_update)
MCFG_SCREEN_PALETTE("palette")
- MCFG_VIDEO_START_OVERRIDE(m72_state,hharryu)
+ set_video_start_cb(config, driver_callback_delegate(&video_start_hharryu, this));
m72_audio_chips(config);
MACHINE_CONFIG_END
@@ -2117,7 +2117,7 @@ MACHINE_CONFIG_START(m72_state::m82)
MCFG_SCREEN_UPDATE_DRIVER(m72_state, screen_update_m82)
MCFG_SCREEN_PALETTE("palette")
- MCFG_VIDEO_START_OVERRIDE(m72_state,m82)
+ set_video_start_cb(config, driver_callback_delegate(&video_start_m82, this));
m72_audio_chips(config);
MACHINE_CONFIG_END
@@ -2160,7 +2160,7 @@ MACHINE_CONFIG_START(m72_state::poundfor)
MCFG_SCREEN_UPDATE_DRIVER(m72_state, screen_update)
MCFG_SCREEN_PALETTE("palette")
- MCFG_VIDEO_START_OVERRIDE(m72_state,poundfor)
+ set_video_start_cb(config, driver_callback_delegate(&video_start_poundfor, this));
m72_audio_chips(config);
MACHINE_CONFIG_END