summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/taito_f2.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/taito_f2.cpp')
-rw-r--r--src/mame/drivers/taito_f2.cpp72
1 files changed, 36 insertions, 36 deletions
diff --git a/src/mame/drivers/taito_f2.cpp b/src/mame/drivers/taito_f2.cpp
index d32b9eb7f08..db3619182e5 100644
--- a/src/mame/drivers/taito_f2.cpp
+++ b/src/mame/drivers/taito_f2.cpp
@@ -2838,14 +2838,14 @@ WRITE8_MEMBER(taitof2_state::cameltrya_porta_w)
MACHINE DRIVERS
***********************************************************/
-void taitof2_state::machine_start_common()
+MACHINE_START_MEMBER(taitof2_state,common)
{
m_int6_timer = timer_alloc(TIMER_TAITOF2_INTERRUPT6);
}
-void taitof2_state::machine_start_f2()
+MACHINE_START_MEMBER(taitof2_state,f2)
{
- machine_start_common();
+ MACHINE_START_CALL_MEMBER(common);
membank("bank2")->configure_entries(0, 8, memregion("audiocpu")->base() + 0x10000, 0x4000);
}
@@ -2858,7 +2858,7 @@ MACHINE_CONFIG_START(taitof2_state::taito_f2)
MCFG_DEVICE_ADD("audiocpu", Z80, 24000000/6) /* 4 MHz */
MCFG_DEVICE_PROGRAM_MAP(sound_map)
- set_machine_start_cb(config, driver_callback_delegate(&machine_start_f2, this));
+ MCFG_MACHINE_START_OVERRIDE(taitof2_state,f2)
MCFG_WATCHDOG_ADD("watchdog")
@@ -2876,7 +2876,7 @@ MACHINE_CONFIG_START(taitof2_state::taito_f2)
MCFG_PALETTE_ADD("palette", 4096)
MCFG_PALETTE_FORMAT(RRRRGGGGBBBBxxxx)
- set_video_start_cb(config, driver_callback_delegate(&video_start_taitof2_default, this));
+ MCFG_VIDEO_START_OVERRIDE(taitof2_state,taitof2_default)
/* sound hardware */
SPEAKER(config, "lspeaker").front_left();
@@ -2947,7 +2947,7 @@ MACHINE_CONFIG_START(taitof2_state::finalb)
/* video hardware */
MCFG_GFXDECODE_MODIFY("gfxdecode", gfx_finalb)
- set_video_start_cb(config, driver_callback_delegate(&video_start_taitof2_finalb, this));
+ MCFG_VIDEO_START_OVERRIDE(taitof2_state,taitof2_finalb)
MCFG_SCREEN_MODIFY("screen")
MCFG_SCREEN_VBLANK_CALLBACK(WRITELINE(*this, taitof2_state, screen_vblank_partial_buffer_delayed))
@@ -2972,7 +2972,7 @@ MACHINE_CONFIG_START(taitof2_state::dondokod)
/* video hardware */
MCFG_GFXDECODE_MODIFY("gfxdecode", gfx_pivot)
- set_video_start_cb(config, driver_callback_delegate(&video_start_taitof2_dondokod, this));
+ MCFG_VIDEO_START_OVERRIDE(taitof2_state,taitof2_dondokod)
MCFG_SCREEN_MODIFY("screen")
MCFG_SCREEN_VBLANK_CALLBACK(WRITELINE(*this, taitof2_state, screen_vblank_partial_buffer_delayed))
MCFG_SCREEN_UPDATE_DRIVER(taitof2_state, screen_update_taitof2_pri_roz)
@@ -3006,7 +3006,7 @@ MACHINE_CONFIG_START(taitof2_state::megab)
MCFG_TIMER_DRIVER_ADD("cchip_irq_clear", taitof2_state, cchip_irq_clear_cb)
/* video hardware */
- set_video_start_cb(config, driver_callback_delegate(&video_start_taitof2_megab, this));
+ MCFG_VIDEO_START_OVERRIDE(taitof2_state,taitof2_megab)
MCFG_SCREEN_MODIFY("screen")
MCFG_SCREEN_UPDATE_DRIVER(taitof2_state, screen_update_taitof2_pri)
@@ -3030,7 +3030,7 @@ MACHINE_CONFIG_START(taitof2_state::thundfox)
/* video hardware */
MCFG_GFXDECODE_MODIFY("gfxdecode", gfx_thundfox)
- set_video_start_cb(config, driver_callback_delegate(&video_start_taitof2_thundfox, this));
+ MCFG_VIDEO_START_OVERRIDE(taitof2_state,taitof2_thundfox)
MCFG_SCREEN_MODIFY("screen")
MCFG_SCREEN_UPDATE_DRIVER(taitof2_state, screen_update_taitof2_thundfox)
MCFG_SCREEN_VBLANK_CALLBACK(WRITELINE(*this, taitof2_state, screen_vblank_partial_buffer_delayed_thundfox))
@@ -3068,7 +3068,7 @@ MACHINE_CONFIG_START(taitof2_state::cameltry)
/* video hardware */
MCFG_GFXDECODE_MODIFY("gfxdecode", gfx_pivot)
- set_video_start_cb(config, driver_callback_delegate(&video_start_taitof2_dondokod, this));
+ MCFG_VIDEO_START_OVERRIDE(taitof2_state,taitof2_dondokod)
MCFG_SCREEN_MODIFY("screen")
MCFG_SCREEN_UPDATE_DRIVER(taitof2_state, screen_update_taitof2_pri_roz)
@@ -3118,7 +3118,7 @@ MACHINE_CONFIG_START(taitof2_state::liquidk)
MCFG_DEVICE_PROGRAM_MAP(liquidk_map)
/* video hardware */
- set_video_start_cb(config, driver_callback_delegate(&video_start_taitof2_megab, this));
+ MCFG_VIDEO_START_OVERRIDE(taitof2_state,taitof2_megab)
MCFG_SCREEN_MODIFY("screen")
MCFG_SCREEN_UPDATE_DRIVER(taitof2_state, screen_update_taitof2_pri)
MCFG_SCREEN_VBLANK_CALLBACK(WRITELINE(*this, taitof2_state, screen_vblank_partial_buffer_delayed))
@@ -3168,7 +3168,7 @@ MACHINE_CONFIG_START(taitof2_state::ssi)
MCFG_PALETTE_FORMAT(RRRRGGGGBBBBxxxx)
/* video hardware */
- set_video_start_cb(config, driver_callback_delegate(&video_start_taitof2_ssi, this));
+ MCFG_VIDEO_START_OVERRIDE(taitof2_state,taitof2_ssi)
MCFG_SCREEN_MODIFY("screen")
MCFG_SCREEN_UPDATE_DRIVER(taitof2_state, screen_update_taitof2_ssi)
MCFG_SCREEN_VBLANK_CALLBACK(WRITELINE(*this, taitof2_state, screen_vblank_partial_buffer_delayed_thundfox))
@@ -3193,7 +3193,7 @@ MACHINE_CONFIG_START(taitof2_state::gunfront)
MCFG_PALETTE_FORMAT(RRRRGGGGBBBBxxxx)
/* video hardware */
- set_video_start_cb(config, driver_callback_delegate(&video_start_taitof2_gunfront, this));
+ MCFG_VIDEO_START_OVERRIDE(taitof2_state,taitof2_gunfront)
MCFG_SCREEN_MODIFY("screen")
MCFG_SCREEN_UPDATE_DRIVER(taitof2_state, screen_update_taitof2_pri)
MCFG_SCREEN_VBLANK_CALLBACK(WRITELINE(*this, taitof2_state, screen_vblank_partial_buffer_delayed))
@@ -3217,7 +3217,7 @@ MACHINE_CONFIG_START(taitof2_state::growl)
MCFG_DEVICE_PROGRAM_MAP(growl_map)
/* video hardware */
- set_video_start_cb(config, driver_callback_delegate(&video_start_taitof2_growl, this));
+ MCFG_VIDEO_START_OVERRIDE(taitof2_state,taitof2_growl)
MCFG_SCREEN_MODIFY("screen")
MCFG_SCREEN_UPDATE_DRIVER(taitof2_state, screen_update_taitof2_pri)
@@ -3243,7 +3243,7 @@ MACHINE_CONFIG_START(taitof2_state::mjnquest)
MCFG_DEVICE_PROGRAM_MAP(mjnquest_map)
/* video hardware */
- set_video_start_cb(config, driver_callback_delegate(&video_start_taitof2_mjnquest, this));
+ MCFG_VIDEO_START_OVERRIDE(taitof2_state,taitof2_mjnquest)
MCFG_DEVICE_ADD("tc0100scn", TC0100SCN, 0)
MCFG_TC0100SCN_GFX_REGION(1)
@@ -3265,7 +3265,7 @@ MACHINE_CONFIG_START(taitof2_state::footchmp)
/* video hardware */
MCFG_GFXDECODE_MODIFY("gfxdecode", gfx_deadconx)
- set_video_start_cb(config, driver_callback_delegate(&video_start_taitof2_footchmp, this));
+ MCFG_VIDEO_START_OVERRIDE(taitof2_state,taitof2_footchmp)
MCFG_SCREEN_MODIFY("screen")
MCFG_SCREEN_UPDATE_DRIVER(taitof2_state, screen_update_taitof2_deadconx)
MCFG_SCREEN_VBLANK_CALLBACK(WRITELINE(*this, taitof2_state, screen_vblank_full_buffer_delayed))
@@ -3298,7 +3298,7 @@ MACHINE_CONFIG_START(taitof2_state::hthero)
/* video hardware */
MCFG_GFXDECODE_MODIFY("gfxdecode", gfx_deadconx)
- set_video_start_cb(config, driver_callback_delegate(&video_start_taitof2_hthero, this));
+ MCFG_VIDEO_START_OVERRIDE(taitof2_state,taitof2_hthero)
MCFG_SCREEN_MODIFY("screen")
MCFG_SCREEN_UPDATE_DRIVER(taitof2_state, screen_update_taitof2_deadconx)
MCFG_SCREEN_VBLANK_CALLBACK(WRITELINE(*this, taitof2_state, screen_vblank_full_buffer_delayed))
@@ -3323,7 +3323,7 @@ MACHINE_CONFIG_START(taitof2_state::koshien)
MCFG_DEVICE_PROGRAM_MAP(koshien_map)
/* video hardware */
- set_video_start_cb(config, driver_callback_delegate(&video_start_taitof2_koshien, this));
+ MCFG_VIDEO_START_OVERRIDE(taitof2_state,taitof2_koshien)
MCFG_SCREEN_MODIFY("screen")
MCFG_SCREEN_UPDATE_DRIVER(taitof2_state, screen_update_taitof2_pri)
@@ -3354,7 +3354,7 @@ MACHINE_CONFIG_START(taitof2_state::yuyugogo)
/* video hardware */
MCFG_GFXDECODE_MODIFY("gfxdecode", gfx_yuyugogo)
- set_video_start_cb(config, driver_callback_delegate(&video_start_taitof2_yuyugogo, this));
+ MCFG_VIDEO_START_OVERRIDE(taitof2_state,taitof2_yuyugogo)
MCFG_SCREEN_MODIFY("screen")
MCFG_SCREEN_UPDATE_DRIVER(taitof2_state, screen_update_taitof2_yesnoj)
@@ -3385,7 +3385,7 @@ MACHINE_CONFIG_START(taitof2_state::ninjak)
MCFG_TE7750_OUT_PORT8_CB(WRITE8(*this, taitof2_state, taitof2_4p_coin_word_w))
/* video hardware */
- set_video_start_cb(config, driver_callback_delegate(&video_start_taitof2_ninjak, this));
+ MCFG_VIDEO_START_OVERRIDE(taitof2_state,taitof2_ninjak)
MCFG_SCREEN_MODIFY("screen")
MCFG_SCREEN_UPDATE_DRIVER(taitof2_state, screen_update_taitof2_pri)
@@ -3408,7 +3408,7 @@ MACHINE_CONFIG_START(taitof2_state::solfigtr)
MCFG_DEVICE_PROGRAM_MAP(solfigtr_map)
/* video hardware */
- set_video_start_cb(config, driver_callback_delegate(&video_start_taitof2_solfigtr, this));
+ MCFG_VIDEO_START_OVERRIDE(taitof2_state,taitof2_solfigtr)
MCFG_SCREEN_MODIFY("screen")
MCFG_SCREEN_UPDATE_DRIVER(taitof2_state, screen_update_taitof2_pri)
@@ -3453,7 +3453,7 @@ MACHINE_CONFIG_START(taitof2_state::pulirula)
/* video hardware */
MCFG_GFXDECODE_MODIFY("gfxdecode", gfx_pivot)
- set_video_start_cb(config, driver_callback_delegate(&video_start_taitof2_pulirula, this));
+ MCFG_VIDEO_START_OVERRIDE(taitof2_state,taitof2_pulirula)
MCFG_SCREEN_MODIFY("screen")
MCFG_SCREEN_UPDATE_DRIVER(taitof2_state, screen_update_taitof2_pri_roz)
@@ -3485,7 +3485,7 @@ MACHINE_CONFIG_START(taitof2_state::metalb)
MCFG_PALETTE_ENTRIES(8192)
MCFG_PALETTE_FORMAT(RRRRGGGGBBBBRGBx)
- set_video_start_cb(config, driver_callback_delegate(&video_start_taitof2_metalb, this));
+ MCFG_VIDEO_START_OVERRIDE(taitof2_state,taitof2_metalb)
MCFG_SCREEN_MODIFY("screen")
MCFG_SCREEN_UPDATE_DRIVER(taitof2_state, screen_update_taitof2_metalb)
@@ -3510,7 +3510,7 @@ MACHINE_CONFIG_START(taitof2_state::qzchikyu)
MCFG_DEVICE_PROGRAM_MAP(qzchikyu_map)
/* video hardware */
- set_video_start_cb(config, driver_callback_delegate(&video_start_taitof2_qzchikyu, this));
+ MCFG_VIDEO_START_OVERRIDE(taitof2_state,taitof2_qzchikyu)
MCFG_SCREEN_MODIFY("screen")
MCFG_SCREEN_VBLANK_CALLBACK(WRITELINE(*this, taitof2_state, screen_vblank_partial_buffer_delayed_qzchikyu))
@@ -3537,7 +3537,7 @@ MACHINE_CONFIG_START(taitof2_state::yesnoj)
MCFG_PALETTE_MODIFY("palette")
MCFG_PALETTE_FORMAT(RRRRGGGGBBBBRGBx)
- set_video_start_cb(config, driver_callback_delegate(&video_start_taitof2_yesnoj, this));
+ MCFG_VIDEO_START_OVERRIDE(taitof2_state,taitof2_yesnoj)
MCFG_SCREEN_MODIFY("screen")
MCFG_SCREEN_UPDATE_DRIVER(taitof2_state, screen_update_taitof2_yesnoj)
@@ -3564,7 +3564,7 @@ MACHINE_CONFIG_START(taitof2_state::deadconx)
MCFG_PALETTE_MODIFY("palette")
MCFG_PALETTE_FORMAT(RRRRGGGGBBBBRGBx)
- set_video_start_cb(config, driver_callback_delegate(&video_start_taitof2_deadconx, this));
+ MCFG_VIDEO_START_OVERRIDE(taitof2_state,taitof2_deadconx)
MCFG_SCREEN_MODIFY("screen")
MCFG_SCREEN_UPDATE_DRIVER(taitof2_state, screen_update_taitof2_deadconx)
@@ -3589,7 +3589,7 @@ MACHINE_CONFIG_START(taitof2_state::deadconxj)
/* video hardware */
MCFG_GFXDECODE_MODIFY("gfxdecode", gfx_deadconx)
- set_video_start_cb(config, driver_callback_delegate(&video_start_taitof2_deadconxj, this));
+ MCFG_VIDEO_START_OVERRIDE(taitof2_state,taitof2_deadconxj)
MCFG_SCREEN_MODIFY("screen")
MCFG_SCREEN_UPDATE_DRIVER(taitof2_state, screen_update_taitof2_deadconx)
@@ -3613,7 +3613,7 @@ MACHINE_CONFIG_START(taitof2_state::dinorex)
MCFG_DEVICE_PROGRAM_MAP(dinorex_map)
/* video hardware */
- set_video_start_cb(config, driver_callback_delegate(&video_start_taitof2_dinorex, this));
+ MCFG_VIDEO_START_OVERRIDE(taitof2_state,taitof2_dinorex)
MCFG_SCREEN_MODIFY("screen")
MCFG_SCREEN_UPDATE_DRIVER(taitof2_state, screen_update_taitof2_pri)
@@ -3639,7 +3639,7 @@ MACHINE_CONFIG_START(taitof2_state::qjinsei)
MCFG_DEVICE_PROGRAM_MAP(qjinsei_map)
/* video hardware */
- set_video_start_cb(config, driver_callback_delegate(&video_start_taitof2_quiz, this));
+ MCFG_VIDEO_START_OVERRIDE(taitof2_state,taitof2_quiz)
MCFG_SCREEN_MODIFY("screen")
MCFG_SCREEN_UPDATE_DRIVER(taitof2_state, screen_update_taitof2_pri)
@@ -3665,7 +3665,7 @@ MACHINE_CONFIG_START(taitof2_state::qcrayon)
MCFG_DEVICE_PROGRAM_MAP(qcrayon_map)
/* video hardware */
- set_video_start_cb(config, driver_callback_delegate(&video_start_taitof2_quiz, this));
+ MCFG_VIDEO_START_OVERRIDE(taitof2_state,taitof2_quiz)
MCFG_SCREEN_MODIFY("screen")
MCFG_SCREEN_UPDATE_DRIVER(taitof2_state, screen_update_taitof2_pri)
@@ -3691,7 +3691,7 @@ MACHINE_CONFIG_START(taitof2_state::qcrayon2)
MCFG_DEVICE_PROGRAM_MAP(qcrayon2_map)
/* video hardware */
- set_video_start_cb(config, driver_callback_delegate(&video_start_taitof2_quiz, this));
+ MCFG_VIDEO_START_OVERRIDE(taitof2_state,taitof2_quiz)
MCFG_SCREEN_MODIFY("screen")
MCFG_SCREEN_UPDATE_DRIVER(taitof2_state, screen_update_taitof2_pri)
@@ -3719,7 +3719,7 @@ MACHINE_CONFIG_START(taitof2_state::driftout)
/* video hardware */
MCFG_GFXDECODE_MODIFY("gfxdecode", gfx_pivot)
- set_video_start_cb(config, driver_callback_delegate(&video_start_taitof2_driftout, this));
+ MCFG_VIDEO_START_OVERRIDE(taitof2_state,taitof2_driftout)
MCFG_SCREEN_MODIFY("screen")
MCFG_SCREEN_UPDATE_DRIVER(taitof2_state, screen_update_taitof2_pri_roz)
@@ -3748,7 +3748,7 @@ MACHINE_CONFIG_START(taitof2_state::cameltrya)
MCFG_DEVICE_ADD("audiocpu", Z80,24000000/4) /* verifed on pcb */
MCFG_DEVICE_PROGRAM_MAP(cameltrya_sound_map)
- set_machine_start_cb(config, driver_callback_delegate(&machine_start_common, this));
+ MCFG_MACHINE_START_OVERRIDE(taitof2_state,common)
MCFG_DEVICE_ADD("tc0220ioc", TC0220IOC, 0)
MCFG_TC0220IOC_READ_0_CB(IOPORT("DSWA"))
@@ -3772,7 +3772,7 @@ MACHINE_CONFIG_START(taitof2_state::cameltrya)
MCFG_PALETTE_ADD("palette", 4096)
MCFG_PALETTE_FORMAT(RRRRGGGGBBBBxxxx)
- set_video_start_cb(config, driver_callback_delegate(&video_start_taitof2_dondokod, this));
+ MCFG_VIDEO_START_OVERRIDE(taitof2_state,taitof2_dondokod)
MCFG_DEVICE_ADD("tc0100scn", TC0100SCN, 0)
MCFG_TC0100SCN_GFX_REGION(1)
@@ -3817,7 +3817,7 @@ MACHINE_CONFIG_START(taitof2_state::driveout)
MCFG_DEVICE_ADD("audiocpu", Z80,24000000/6) /* 4 MHz */
MCFG_DEVICE_PROGRAM_MAP(driveout_sound_map)
- set_machine_start_cb(config, driver_callback_delegate(&machine_start_common, this));
+ MCFG_MACHINE_START_OVERRIDE(taitof2_state,common)
MCFG_DEVICE_ADD("tc0510nio", TC0510NIO, 0)
MCFG_TC0510NIO_READ_0_CB(IOPORT("DSWA"))
@@ -3841,7 +3841,7 @@ MACHINE_CONFIG_START(taitof2_state::driveout)
MCFG_PALETTE_ADD("palette", 4096)
MCFG_PALETTE_FORMAT(xRRRRRGGGGGBBBBB)
- set_video_start_cb(config, driver_callback_delegate(&video_start_taitof2_driftout, this));
+ MCFG_VIDEO_START_OVERRIDE(taitof2_state,taitof2_driftout)
MCFG_DEVICE_ADD("tc0100scn", TC0100SCN, 0)
MCFG_TC0100SCN_GFX_REGION(1)