summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/tmnt.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/tmnt.cpp')
-rw-r--r--src/mame/drivers/tmnt.cpp76
1 files changed, 38 insertions, 38 deletions
diff --git a/src/mame/drivers/tmnt.cpp b/src/mame/drivers/tmnt.cpp
index 122eac1cd11..400eeebd849 100644
--- a/src/mame/drivers/tmnt.cpp
+++ b/src/mame/drivers/tmnt.cpp
@@ -1889,7 +1889,7 @@ WRITE8_MEMBER(tmnt_state::volume_callback)
m_k007232->set_volume(1, 0, (data & 0x0f) * 0x11);
}
-MACHINE_START_MEMBER(tmnt_state,common)
+void tmnt_state::machine_start_common()
{
save_item(NAME(m_toggle));
save_item(NAME(m_last));
@@ -1901,7 +1901,7 @@ MACHINE_START_MEMBER(tmnt_state,common)
save_item(NAME(m_irq5_mask));
}
-MACHINE_RESET_MEMBER(tmnt_state,common)
+void tmnt_state::machine_reset_common()
{
m_toggle = 0;
m_last = 0;
@@ -1917,8 +1917,8 @@ MACHINE_CONFIG_START(tmnt_state::cuebrick)
MCFG_DEVICE_PROGRAM_MAP(cuebrick_main_map)
MCFG_DEVICE_VBLANK_INT_DRIVER("screen", tmnt_state, tmnt_interrupt)
- MCFG_MACHINE_START_OVERRIDE(tmnt_state,common)
- MCFG_MACHINE_RESET_OVERRIDE(tmnt_state,common)
+ set_machine_start_cb(config, driver_callback_delegate(&machine_start_common, this));
+ set_machine_reset_cb(config, driver_callback_delegate(&machine_reset_common, this));
MCFG_WATCHDOG_ADD("watchdog")
@@ -1940,7 +1940,7 @@ MACHINE_CONFIG_START(tmnt_state::cuebrick)
MCFG_NVRAM_ADD_0FILL("nvram")
- MCFG_VIDEO_START_OVERRIDE(tmnt_state,cuebrick)
+ set_video_start_cb(config, driver_callback_delegate(&video_start_cuebrick, this));
MCFG_DEVICE_ADD("k052109", K052109, 0)
MCFG_GFX_PALETTE("palette")
@@ -1972,8 +1972,8 @@ MACHINE_CONFIG_START(tmnt_state::mia)
MCFG_DEVICE_ADD("audiocpu", Z80, XTAL(3'579'545))
MCFG_DEVICE_PROGRAM_MAP(mia_audio_map)
- MCFG_MACHINE_START_OVERRIDE(tmnt_state,common)
- MCFG_MACHINE_RESET_OVERRIDE(tmnt_state,common)
+ set_machine_start_cb(config, driver_callback_delegate(&machine_start_common, this));
+ set_machine_reset_cb(config, driver_callback_delegate(&machine_reset_common, this));
MCFG_WATCHDOG_ADD("watchdog")
@@ -1992,7 +1992,7 @@ MACHINE_CONFIG_START(tmnt_state::mia)
MCFG_PALETTE_ENABLE_SHADOWS()
MCFG_PALETTE_ENABLE_HILIGHTS()
- MCFG_VIDEO_START_OVERRIDE(tmnt_state,mia)
+ set_video_start_cb(config, driver_callback_delegate(&video_start_mia, this));
MCFG_DEVICE_ADD("k052109", K052109, 0)
MCFG_GFX_PALETTE("palette")
@@ -2020,7 +2020,7 @@ MACHINE_CONFIG_START(tmnt_state::mia)
MACHINE_CONFIG_END
-MACHINE_RESET_MEMBER(tmnt_state,tmnt)
+void tmnt_state::machine_reset_tmnt()
{
/* the UPD7759 control flip-flops are cleared: /ST is 1, /RESET is 0 */
m_upd7759->start_w(0);
@@ -2037,8 +2037,8 @@ MACHINE_CONFIG_START(tmnt_state::tmnt)
MCFG_DEVICE_ADD("audiocpu", Z80, XTAL(3'579'545))
MCFG_DEVICE_PROGRAM_MAP(tmnt_audio_map)
- MCFG_MACHINE_START_OVERRIDE(tmnt_state,common)
- MCFG_MACHINE_RESET_OVERRIDE(tmnt_state,tmnt)
+ set_machine_start_cb(config, driver_callback_delegate(&machine_start_common, this));
+ set_machine_reset_cb(config, driver_callback_delegate(&machine_reset_tmnt, this));
MCFG_WATCHDOG_ADD("watchdog")
@@ -2058,7 +2058,7 @@ MACHINE_CONFIG_START(tmnt_state::tmnt)
MCFG_PALETTE_ENABLE_SHADOWS()
MCFG_PALETTE_ENABLE_HILIGHTS()
- MCFG_VIDEO_START_OVERRIDE(tmnt_state,tmnt)
+ set_video_start_cb(config, driver_callback_delegate(&video_start_tmnt, this));
MCFG_DEVICE_ADD("k052109", K052109, 0)
MCFG_GFX_PALETTE("palette")
@@ -2105,8 +2105,8 @@ MACHINE_CONFIG_START(tmnt_state::punkshot)
MCFG_DEVICE_PROGRAM_MAP(punkshot_audio_map)
/* NMIs are generated by the 053260 */
- MCFG_MACHINE_START_OVERRIDE(tmnt_state,common)
- MCFG_MACHINE_RESET_OVERRIDE(tmnt_state,common)
+ set_machine_start_cb(config, driver_callback_delegate(&machine_start_common, this));
+ set_machine_reset_cb(config, driver_callback_delegate(&machine_reset_common, this));
MCFG_WATCHDOG_ADD("watchdog")
@@ -2158,8 +2158,8 @@ MACHINE_CONFIG_START(tmnt_state::lgtnfght)
MCFG_DEVICE_ADD("audiocpu", Z80, XTAL(3'579'545))
MCFG_DEVICE_PROGRAM_MAP(lgtnfght_audio_map)
- MCFG_MACHINE_START_OVERRIDE(tmnt_state,common)
- MCFG_MACHINE_RESET_OVERRIDE(tmnt_state,common)
+ set_machine_start_cb(config, driver_callback_delegate(&machine_start_common, this));
+ set_machine_reset_cb(config, driver_callback_delegate(&machine_reset_common, this));
MCFG_WATCHDOG_ADD("watchdog")
@@ -2178,7 +2178,7 @@ MACHINE_CONFIG_START(tmnt_state::lgtnfght)
MCFG_PALETTE_ENABLE_SHADOWS()
MCFG_PALETTE_ENABLE_HILIGHTS()
- MCFG_VIDEO_START_OVERRIDE(tmnt_state,lgtnfght)
+ set_video_start_cb(config, driver_callback_delegate(&video_start_lgtnfght, this));
MCFG_DEVICE_ADD("k052109", K052109, 0)
MCFG_GFX_PALETTE("palette")
@@ -2216,8 +2216,8 @@ MACHINE_CONFIG_START(tmnt_state::blswhstl)
MCFG_DEVICE_PROGRAM_MAP(ssriders_audio_map)
/* NMIs are generated by the 053260 */
- MCFG_MACHINE_START_OVERRIDE(tmnt_state,common)
- MCFG_MACHINE_RESET_OVERRIDE(tmnt_state,common)
+ set_machine_start_cb(config, driver_callback_delegate(&machine_start_common, this));
+ set_machine_reset_cb(config, driver_callback_delegate(&machine_reset_common, this));
MCFG_EEPROM_SERIAL_ER5911_8BIT_ADD("eeprom")
@@ -2239,7 +2239,7 @@ MACHINE_CONFIG_START(tmnt_state::blswhstl)
MCFG_PALETTE_ENABLE_SHADOWS()
MCFG_PALETTE_ENABLE_HILIGHTS()
- MCFG_VIDEO_START_OVERRIDE(tmnt_state, blswhstl )
+ set_video_start_cb(config, driver_callback_delegate(&video_start_blswhstl, this));
MCFG_DEVICE_ADD("k052109", K052109, 0)
MCFG_GFX_PALETTE("palette")
@@ -2295,8 +2295,8 @@ MACHINE_CONFIG_START(tmnt_state::glfgreat)
MCFG_DEVICE_PROGRAM_MAP(glfgreat_audio_map)
/* NMIs are generated by the 053260 */
- MCFG_MACHINE_START_OVERRIDE(tmnt_state,common)
- MCFG_MACHINE_RESET_OVERRIDE(tmnt_state,common)
+ set_machine_start_cb(config, driver_callback_delegate(&machine_start_common, this));
+ set_machine_reset_cb(config, driver_callback_delegate(&machine_reset_common, this));
MCFG_WATCHDOG_ADD("watchdog")
@@ -2317,7 +2317,7 @@ MACHINE_CONFIG_START(tmnt_state::glfgreat)
MCFG_PALETTE_ENABLE_SHADOWS()
MCFG_PALETTE_ENABLE_HILIGHTS()
- MCFG_VIDEO_START_OVERRIDE(tmnt_state,glfgreat)
+ set_video_start_cb(config, driver_callback_delegate(&video_start_glfgreat, this));
MCFG_DEVICE_ADD("k052109", K052109, 0)
MCFG_GFX_PALETTE("palette")
@@ -2344,9 +2344,9 @@ MACHINE_CONFIG_START(tmnt_state::glfgreat)
MACHINE_CONFIG_END
-MACHINE_START_MEMBER(tmnt_state,prmrsocr)
+void tmnt_state::machine_start_prmrsocr()
{
- MACHINE_START_CALL_MEMBER(common);
+ machine_start_common();
uint8_t *ROM = memregion("audiocpu")->base();
membank("bank1")->configure_entries(0, 8, &ROM[0x10000], 0x4000);
}
@@ -2362,8 +2362,8 @@ MACHINE_CONFIG_START(tmnt_state::prmrsocr)
MCFG_DEVICE_PROGRAM_MAP(prmrsocr_audio_map)
/* NMIs are generated by the 054539 */
- MCFG_MACHINE_START_OVERRIDE(tmnt_state,prmrsocr)
- MCFG_MACHINE_RESET_OVERRIDE(tmnt_state,common)
+ set_machine_start_cb(config, driver_callback_delegate(&machine_start_prmrsocr, this));
+ set_machine_reset_cb(config, driver_callback_delegate(&machine_reset_common, this));
MCFG_EEPROM_SERIAL_ER5911_8BIT_ADD("eeprom")
@@ -2386,7 +2386,7 @@ MACHINE_CONFIG_START(tmnt_state::prmrsocr)
MCFG_PALETTE_ENABLE_SHADOWS()
MCFG_PALETTE_ENABLE_HILIGHTS()
- MCFG_VIDEO_START_OVERRIDE(tmnt_state,prmrsocr)
+ set_video_start_cb(config, driver_callback_delegate(&video_start_prmrsocr, this));
MCFG_DEVICE_ADD("k052109", K052109, 0)
MCFG_GFX_PALETTE("palette")
@@ -2432,8 +2432,8 @@ MACHINE_CONFIG_START(tmnt_state::tmnt2)
MCFG_DEVICE_PROGRAM_MAP(ssriders_audio_map)
/* NMIs are generated by the 053260 */
- MCFG_MACHINE_START_OVERRIDE(tmnt_state,common)
- MCFG_MACHINE_RESET_OVERRIDE(tmnt_state,common)
+ set_machine_start_cb(config, driver_callback_delegate(&machine_start_common, this));
+ set_machine_reset_cb(config, driver_callback_delegate(&machine_reset_common, this));
MCFG_EEPROM_SERIAL_ER5911_8BIT_ADD("eeprom")
@@ -2454,7 +2454,7 @@ MACHINE_CONFIG_START(tmnt_state::tmnt2)
MCFG_PALETTE_ENABLE_SHADOWS()
MCFG_PALETTE_ENABLE_HILIGHTS()
- MCFG_VIDEO_START_OVERRIDE(tmnt_state,lgtnfght)
+ set_video_start_cb(config, driver_callback_delegate(&video_start_lgtnfght, this));
MCFG_DEVICE_ADD("k052109", K052109, 0)
MCFG_GFX_PALETTE("palette")
@@ -2492,8 +2492,8 @@ MACHINE_CONFIG_START(tmnt_state::ssriders)
MCFG_DEVICE_PROGRAM_MAP(ssriders_audio_map)
/* NMIs are generated by the 053260 */
- MCFG_MACHINE_START_OVERRIDE(tmnt_state,common)
- MCFG_MACHINE_RESET_OVERRIDE(tmnt_state,common)
+ set_machine_start_cb(config, driver_callback_delegate(&machine_start_common, this));
+ set_machine_reset_cb(config, driver_callback_delegate(&machine_reset_common, this));
MCFG_EEPROM_SERIAL_ER5911_8BIT_ADD("eeprom")
@@ -2514,7 +2514,7 @@ MACHINE_CONFIG_START(tmnt_state::ssriders)
MCFG_PALETTE_ENABLE_SHADOWS()
MCFG_PALETTE_ENABLE_HILIGHTS()
- MCFG_VIDEO_START_OVERRIDE(tmnt_state,lgtnfght)
+ set_video_start_cb(config, driver_callback_delegate(&video_start_lgtnfght, this));
MCFG_DEVICE_ADD("k052109", K052109, 0)
MCFG_GFX_PALETTE("palette")
@@ -2548,8 +2548,8 @@ MACHINE_CONFIG_START(tmnt_state::sunsetbl)
MCFG_DEVICE_PROGRAM_MAP(sunsetbl_main_map)
MCFG_DEVICE_VBLANK_INT_DRIVER("screen", tmnt_state, irq4_line_hold)
- MCFG_MACHINE_START_OVERRIDE(tmnt_state,common)
- MCFG_MACHINE_RESET_OVERRIDE(tmnt_state,common)
+ set_machine_start_cb(config, driver_callback_delegate(&machine_start_common, this));
+ set_machine_reset_cb(config, driver_callback_delegate(&machine_reset_common, this));
MCFG_EEPROM_SERIAL_ER5911_8BIT_ADD("eeprom")
@@ -2599,8 +2599,8 @@ MACHINE_CONFIG_START(tmnt_state::thndrx2)
MCFG_DEVICE_PROGRAM_MAP(thndrx2_audio_map)
/* NMIs are generated by the 053260 */
- MCFG_MACHINE_START_OVERRIDE(tmnt_state,common)
- MCFG_MACHINE_RESET_OVERRIDE(tmnt_state,common)
+ set_machine_start_cb(config, driver_callback_delegate(&machine_start_common, this));
+ set_machine_reset_cb(config, driver_callback_delegate(&machine_reset_common, this));
MCFG_EEPROM_SERIAL_ER5911_8BIT_ADD("eeprom")