summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/toaplan2.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/toaplan2.cpp')
-rw-r--r--src/mame/drivers/toaplan2.cpp68
1 files changed, 34 insertions, 34 deletions
diff --git a/src/mame/drivers/toaplan2.cpp b/src/mame/drivers/toaplan2.cpp
index a1c0a280b44..b099bad81bc 100644
--- a/src/mame/drivers/toaplan2.cpp
+++ b/src/mame/drivers/toaplan2.cpp
@@ -424,7 +424,7 @@ WRITE_LINE_MEMBER(toaplan2_state::toaplan2_reset)
}
-void toaplan2_state::machine_reset_toaplan2()
+MACHINE_RESET_MEMBER(toaplan2_state,toaplan2)
{
// All games execute a RESET instruction on init, presumably to reset the sound CPU.
// This is important for games with common RAM; the RAM test will fail
@@ -433,9 +433,9 @@ void toaplan2_state::machine_reset_toaplan2()
}
-void toaplan2_state::machine_reset_ghox()
+MACHINE_RESET_MEMBER(toaplan2_state,ghox)
{
- machine_reset_toaplan2();
+ MACHINE_RESET_CALL_MEMBER(toaplan2);
m_old_p1_paddle_h = 0;
m_old_p2_paddle_h = 0;
}
@@ -3249,7 +3249,7 @@ MACHINE_CONFIG_START(toaplan2_state::tekipaki)
MCFG_QUANTUM_TIME(attotime::from_hz(600))
- set_machine_reset_cb(config, driver_callback_delegate(&machine_reset_toaplan2, this));
+ MCFG_MACHINE_RESET_OVERRIDE(toaplan2_state,toaplan2)
/* video hardware */
MCFG_SCREEN_ADD("screen", RASTER)
@@ -3269,7 +3269,7 @@ MACHINE_CONFIG_START(toaplan2_state::tekipaki)
MCFG_GFX_PALETTE("palette")
MCFG_GP9001_VINT_CALLBACK(INPUTLINE("maincpu", M68K_IRQ_4))
- set_video_start_cb(config, driver_callback_delegate(&video_start_toaplan2, this));
+ MCFG_VIDEO_START_OVERRIDE(toaplan2_state,toaplan2)
/* sound hardware */
SPEAKER(config, "mono").front_center();
@@ -3292,7 +3292,7 @@ MACHINE_CONFIG_START(toaplan2_state::ghox)
MCFG_QUANTUM_TIME(attotime::from_hz(600))
- set_machine_reset_cb(config, driver_callback_delegate(&machine_reset_ghox, this));
+ MCFG_MACHINE_RESET_OVERRIDE(toaplan2_state,ghox)
/* video hardware */
MCFG_SCREEN_ADD("screen", RASTER)
@@ -3312,7 +3312,7 @@ MACHINE_CONFIG_START(toaplan2_state::ghox)
MCFG_GFX_PALETTE("palette")
MCFG_GP9001_VINT_CALLBACK(INPUTLINE("maincpu", M68K_IRQ_4))
- set_video_start_cb(config, driver_callback_delegate(&video_start_toaplan2, this));
+ MCFG_VIDEO_START_OVERRIDE(toaplan2_state,toaplan2)
/* sound hardware */
SPEAKER(config, "mono").front_center();
@@ -3403,7 +3403,7 @@ MACHINE_CONFIG_START(toaplan2_state::dogyuun)
MCFG_DEVICE_ADD("gp9001_1", GP9001_VDP, XTAL(27'000'000))
MCFG_GFX_PALETTE("palette")
- set_video_start_cb(config, driver_callback_delegate(&video_start_toaplan2, this));
+ MCFG_VIDEO_START_OVERRIDE(toaplan2_state,toaplan2)
/* sound hardware */
SPEAKER(config, "mono").front_center();
@@ -3449,7 +3449,7 @@ MACHINE_CONFIG_START(toaplan2_state::kbash)
MCFG_GFX_PALETTE("palette")
MCFG_GP9001_VINT_CALLBACK(INPUTLINE("maincpu", M68K_IRQ_4))
- set_video_start_cb(config, driver_callback_delegate(&video_start_toaplan2, this));
+ MCFG_VIDEO_START_OVERRIDE(toaplan2_state,toaplan2)
/* sound hardware */
SPEAKER(config, "mono").front_center();
@@ -3486,7 +3486,7 @@ MACHINE_CONFIG_START(toaplan2_state::kbash2)
MCFG_GFX_PALETTE("palette")
MCFG_GP9001_VINT_CALLBACK(INPUTLINE("maincpu", M68K_IRQ_4))
- set_video_start_cb(config, driver_callback_delegate(&video_start_toaplan2, this));
+ MCFG_VIDEO_START_OVERRIDE(toaplan2_state,toaplan2)
/* sound hardware */
SPEAKER(config, "mono").front_center();
@@ -3521,7 +3521,7 @@ MACHINE_CONFIG_START(toaplan2_state::truxton2)
MCFG_GFX_PALETTE("palette")
MCFG_GP9001_VINT_CALLBACK(INPUTLINE("maincpu", M68K_IRQ_2))
- set_video_start_cb(config, driver_callback_delegate(&video_start_truxton2, this));
+ MCFG_VIDEO_START_OVERRIDE(toaplan2_state,truxton2)
/* sound hardware */
#ifdef TRUXTON2_STEREO // music data is stereo...
@@ -3558,7 +3558,7 @@ MACHINE_CONFIG_START(toaplan2_state::pipibibs)
MCFG_QUANTUM_TIME(attotime::from_hz(600))
- set_machine_reset_cb(config, driver_callback_delegate(&machine_reset_toaplan2, this));
+ MCFG_MACHINE_RESET_OVERRIDE(toaplan2_state,toaplan2)
/* video hardware */
MCFG_SCREEN_ADD("screen", RASTER)
@@ -3578,7 +3578,7 @@ MACHINE_CONFIG_START(toaplan2_state::pipibibs)
MCFG_GFX_PALETTE("palette")
MCFG_GP9001_VINT_CALLBACK(INPUTLINE("maincpu", M68K_IRQ_4))
- set_video_start_cb(config, driver_callback_delegate(&video_start_toaplan2, this));
+ MCFG_VIDEO_START_OVERRIDE(toaplan2_state,toaplan2)
/* sound hardware */
SPEAKER(config, "mono").front_center();
@@ -3601,7 +3601,7 @@ MACHINE_CONFIG_START(toaplan2_state::pipibibsbl)
MCFG_QUANTUM_TIME(attotime::from_hz(600))
- set_machine_reset_cb(config, driver_callback_delegate(&machine_reset_toaplan2, this));
+ MCFG_MACHINE_RESET_OVERRIDE(toaplan2_state,toaplan2)
/* video hardware */
MCFG_SCREEN_ADD("screen", RASTER)
@@ -3621,7 +3621,7 @@ MACHINE_CONFIG_START(toaplan2_state::pipibibsbl)
MCFG_GFX_PALETTE("palette")
MCFG_GP9001_VINT_CALLBACK(ASSERTLINE("maincpu", M68K_IRQ_4))
- set_video_start_cb(config, driver_callback_delegate(&video_start_toaplan2, this));
+ MCFG_VIDEO_START_OVERRIDE(toaplan2_state,toaplan2)
/* sound hardware */
SPEAKER(config, "mono").front_center();
@@ -3700,7 +3700,7 @@ MACHINE_CONFIG_START(toaplan2_state::fixeight)
MCFG_GFX_PALETTE("palette")
MCFG_GP9001_VINT_CALLBACK(INPUTLINE("maincpu", M68K_IRQ_4))
- set_video_start_cb(config, driver_callback_delegate(&video_start_truxton2, this));
+ MCFG_VIDEO_START_OVERRIDE(toaplan2_state,truxton2)
/* sound hardware */
SPEAKER(config, "mono").front_center();
@@ -3739,7 +3739,7 @@ MACHINE_CONFIG_START(toaplan2_state::fixeightbl)
MCFG_GFX_PALETTE("palette")
MCFG_GP9001_VINT_CALLBACK(ASSERTLINE("maincpu", M68K_IRQ_2))
- set_video_start_cb(config, driver_callback_delegate(&video_start_fixeightbl, this));
+ MCFG_VIDEO_START_OVERRIDE(toaplan2_state,fixeightbl)
/* sound hardware */
SPEAKER(config, "mono").front_center();
@@ -3779,7 +3779,7 @@ MACHINE_CONFIG_START(toaplan2_state::vfive)
MCFG_GFX_PALETTE("palette")
MCFG_GP9001_VINT_CALLBACK(INPUTLINE("maincpu", M68K_IRQ_4))
- set_video_start_cb(config, driver_callback_delegate(&video_start_toaplan2, this));
+ MCFG_VIDEO_START_OVERRIDE(toaplan2_state,toaplan2)
/* sound hardware */
SPEAKER(config, "mono").front_center();
@@ -3823,7 +3823,7 @@ MACHINE_CONFIG_START(toaplan2_state::batsugun)
MCFG_DEVICE_ADD("gp9001_1", GP9001_VDP, XTAL(27'000'000))
MCFG_GFX_PALETTE("palette")
- set_video_start_cb(config, driver_callback_delegate(&video_start_toaplan2, this));
+ MCFG_VIDEO_START_OVERRIDE(toaplan2_state,toaplan2)
/* sound hardware */
SPEAKER(config, "mono").front_center();
@@ -3862,7 +3862,7 @@ MACHINE_CONFIG_START(toaplan2_state::pwrkick)
MCFG_GFX_PALETTE("palette")
MCFG_GP9001_VINT_CALLBACK(INPUTLINE("maincpu", M68K_IRQ_4))
- set_video_start_cb(config, driver_callback_delegate(&video_start_toaplan2, this));
+ MCFG_VIDEO_START_OVERRIDE(toaplan2_state,toaplan2)
/* sound hardware */
SPEAKER(config, "mono").front_center();
@@ -3895,7 +3895,7 @@ MACHINE_CONFIG_START(toaplan2_state::othldrby)
MCFG_GFX_PALETTE("palette")
MCFG_GP9001_VINT_CALLBACK(INPUTLINE("maincpu", M68K_IRQ_4))
- set_video_start_cb(config, driver_callback_delegate(&video_start_toaplan2, this));
+ MCFG_VIDEO_START_OVERRIDE(toaplan2_state,toaplan2)
/* sound hardware */
SPEAKER(config, "mono").front_center();
@@ -3925,7 +3925,7 @@ MACHINE_CONFIG_START(toaplan2_state::enmadaio)
MCFG_GFX_PALETTE("palette")
MCFG_GP9001_VINT_CALLBACK(INPUTLINE("maincpu", M68K_IRQ_4))
- set_video_start_cb(config, driver_callback_delegate(&video_start_toaplan2, this));
+ MCFG_VIDEO_START_OVERRIDE(toaplan2_state,toaplan2)
/* sound hardware */
SPEAKER(config, "mono").front_center();
@@ -3962,7 +3962,7 @@ MACHINE_CONFIG_START(toaplan2_state::snowbro2)
MCFG_GFX_PALETTE("palette")
MCFG_GP9001_VINT_CALLBACK(INPUTLINE("maincpu", M68K_IRQ_4))
- set_video_start_cb(config, driver_callback_delegate(&video_start_toaplan2, this));
+ MCFG_VIDEO_START_OVERRIDE(toaplan2_state,toaplan2)
/* sound hardware */
SPEAKER(config, "mono").front_center();
@@ -3986,7 +3986,7 @@ MACHINE_CONFIG_START(toaplan2_state::mahoudai)
MCFG_QUANTUM_TIME(attotime::from_hz(600))
- set_machine_reset_cb(config, driver_callback_delegate(&machine_reset_toaplan2, this));
+ MCFG_MACHINE_RESET_OVERRIDE(toaplan2_state,toaplan2)
/* video hardware */
MCFG_SCREEN_ADD("screen", RASTER)
@@ -4007,7 +4007,7 @@ MACHINE_CONFIG_START(toaplan2_state::mahoudai)
MCFG_GFX_PALETTE("palette")
MCFG_GP9001_VINT_CALLBACK(INPUTLINE("maincpu", M68K_IRQ_4))
- set_video_start_cb(config, driver_callback_delegate(&video_start_bgaregga, this));
+ MCFG_VIDEO_START_OVERRIDE(toaplan2_state,bgaregga)
/* sound hardware */
SPEAKER(config, "mono").front_center();
@@ -4031,7 +4031,7 @@ MACHINE_CONFIG_START(toaplan2_state::shippumd)
MCFG_QUANTUM_TIME(attotime::from_hz(600))
- set_machine_reset_cb(config, driver_callback_delegate(&machine_reset_toaplan2, this));
+ MCFG_MACHINE_RESET_OVERRIDE(toaplan2_state,toaplan2)
/* video hardware */
MCFG_SCREEN_ADD("screen", RASTER)
@@ -4052,7 +4052,7 @@ MACHINE_CONFIG_START(toaplan2_state::shippumd)
MCFG_GFX_PALETTE("palette")
MCFG_GP9001_VINT_CALLBACK(INPUTLINE("maincpu", M68K_IRQ_4))
- set_video_start_cb(config, driver_callback_delegate(&video_start_bgaregga, this));
+ MCFG_VIDEO_START_OVERRIDE(toaplan2_state,bgaregga)
/* sound hardware */
SPEAKER(config, "mono").front_center();
@@ -4075,7 +4075,7 @@ MACHINE_CONFIG_START(toaplan2_state::bgaregga)
MCFG_QUANTUM_TIME(attotime::from_hz(6000))
- set_machine_reset_cb(config, driver_callback_delegate(&machine_reset_toaplan2, this));
+ MCFG_MACHINE_RESET_OVERRIDE(toaplan2_state,toaplan2)
/* video hardware */
MCFG_SCREEN_ADD("screen", RASTER)
@@ -4096,7 +4096,7 @@ MACHINE_CONFIG_START(toaplan2_state::bgaregga)
MCFG_GFX_PALETTE("palette")
MCFG_GP9001_VINT_CALLBACK(INPUTLINE("maincpu", M68K_IRQ_4))
- set_video_start_cb(config, driver_callback_delegate(&video_start_bgaregga, this));
+ MCFG_VIDEO_START_OVERRIDE(toaplan2_state,bgaregga)
/* sound hardware */
SPEAKER(config, "mono").front_center();
@@ -4118,7 +4118,7 @@ MACHINE_CONFIG_END
MACHINE_CONFIG_START(toaplan2_state::bgareggabl)
bgaregga(config);
- set_video_start_cb(config, driver_callback_delegate(&video_start_bgareggabl, this));
+ MCFG_VIDEO_START_OVERRIDE(toaplan2_state,bgareggabl)
MCFG_SCREEN_MODIFY("screen")
MCFG_SCREEN_UPDATE_DRIVER(toaplan2_state, screen_update_bootleg)
@@ -4136,7 +4136,7 @@ MACHINE_CONFIG_START(toaplan2_state::batrider)
MCFG_QUANTUM_TIME(attotime::from_hz(600))
- set_machine_reset_cb(config, driver_callback_delegate(&machine_reset_toaplan2, this));
+ MCFG_MACHINE_RESET_OVERRIDE(toaplan2_state,toaplan2)
/* video hardware */
MCFG_SCREEN_ADD("screen", RASTER)
@@ -4157,7 +4157,7 @@ MACHINE_CONFIG_START(toaplan2_state::batrider)
MCFG_GFX_PALETTE("palette")
MCFG_GP9001_VINT_CALLBACK(INPUTLINE("maincpu", M68K_IRQ_2))
- set_video_start_cb(config, driver_callback_delegate(&video_start_batrider, this));
+ MCFG_VIDEO_START_OVERRIDE(toaplan2_state,batrider)
/* sound hardware */
SPEAKER(config, "mono").front_center();
@@ -4195,7 +4195,7 @@ MACHINE_CONFIG_START(toaplan2_state::bbakraid)
MCFG_QUANTUM_TIME(attotime::from_hz(600))
- set_machine_reset_cb(config, driver_callback_delegate(&machine_reset_toaplan2, this));
+ MCFG_MACHINE_RESET_OVERRIDE(toaplan2_state,toaplan2)
MCFG_EEPROM_SERIAL_93C66_8BIT_ADD("eeprom")
@@ -4218,7 +4218,7 @@ MACHINE_CONFIG_START(toaplan2_state::bbakraid)
MCFG_GFX_PALETTE("palette")
MCFG_GP9001_VINT_CALLBACK(INPUTLINE("maincpu", M68K_IRQ_1))
- set_video_start_cb(config, driver_callback_delegate(&video_start_batrider, this));
+ MCFG_VIDEO_START_OVERRIDE(toaplan2_state,batrider)
/* sound hardware */
SPEAKER(config, "mono").front_center();