summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/tsamurai.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/tsamurai.cpp')
-rw-r--r--src/mame/drivers/tsamurai.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/mame/drivers/tsamurai.cpp b/src/mame/drivers/tsamurai.cpp
index bc16b887838..b7181baf540 100644
--- a/src/mame/drivers/tsamurai.cpp
+++ b/src/mame/drivers/tsamurai.cpp
@@ -55,20 +55,20 @@ void tsamurai_state::machine_start()
save_item(NAME(m_nmi_enabled));
}
-void tsamurai_state::machine_start_tsamurai()
+MACHINE_START_MEMBER(tsamurai_state, tsamurai)
{
save_item(NAME(m_sound_command1));
save_item(NAME(m_sound_command2));
machine_start();
}
-void tsamurai_state::machine_start_m660()
+MACHINE_START_MEMBER(tsamurai_state, m660)
{
- machine_start_tsamurai();
+ MACHINE_START_CALL_MEMBER(tsamurai);
save_item(NAME(m_sound_command3));
}
-void tsamurai_state::machine_start_vsgongf()
+MACHINE_START_MEMBER(tsamurai_state, vsgongf)
{
save_item(NAME(m_vsgongf_sound_nmi_enabled));
machine_start();
@@ -729,7 +729,7 @@ MACHINE_CONFIG_START(tsamurai_state::tsamurai)
MCFG_DEVICE_ADD("audio2", Z80, XTAL(24'000'000)/8)
MCFG_DEVICE_PROGRAM_MAP(sound2_map)
- set_machine_start_cb(config, driver_callback_delegate(&machine_start_tsamurai, this));
+ MCFG_MACHINE_START_OVERRIDE(tsamurai_state,tsamurai)
MCFG_DEVICE_ADD("mainlatch", LS259, 0)
MCFG_ADDRESSABLE_LATCH_Q0_OUT_CB(WRITELINE(*this, tsamurai_state, flip_screen_w))
@@ -750,7 +750,7 @@ MACHINE_CONFIG_START(tsamurai_state::tsamurai)
MCFG_DEVICE_ADD("gfxdecode", GFXDECODE, "palette", gfx_tsamurai)
MCFG_PALETTE_ADD_RRRRGGGGBBBB_PROMS("palette", "proms", 256)
- set_video_start_cb(config, driver_callback_delegate(&video_start_tsamurai, this));
+ MCFG_VIDEO_START_OVERRIDE(tsamurai_state,tsamurai)
/* sound hardware */
SPEAKER(config, "speaker").front_center();
@@ -777,7 +777,7 @@ MACHINE_CONFIG_START(tsamurai_state::vsgongf)
MCFG_DEVICE_IO_MAP(vsgongf_audio_io_map)
MCFG_DEVICE_PERIODIC_INT_DRIVER(tsamurai_state, vsgongf_sound_interrupt, 3*60)
- set_machine_start_cb(config, driver_callback_delegate(&machine_start_vsgongf, this));
+ MCFG_MACHINE_START_OVERRIDE(tsamurai_state,vsgongf)
MCFG_DEVICE_ADD("mainlatch", LS259, 0) // 4L
MCFG_ADDRESSABLE_LATCH_Q0_OUT_CB(NOOP) // vreg? always 0
@@ -798,7 +798,7 @@ MACHINE_CONFIG_START(tsamurai_state::vsgongf)
MCFG_DEVICE_ADD("gfxdecode", GFXDECODE, "palette", gfx_tsamurai)
MCFG_PALETTE_ADD_RRRRGGGGBBBB_PROMS("palette", "proms", 256)
- set_video_start_cb(config, driver_callback_delegate(&video_start_vsgongf, this));
+ MCFG_VIDEO_START_OVERRIDE(tsamurai_state,vsgongf)
/* sound hardware */
SPEAKER(config, "speaker").front_center();
@@ -831,7 +831,7 @@ MACHINE_CONFIG_START(tsamurai_state::m660)
MCFG_DEVICE_PROGRAM_MAP(sound3_m660_map)
MCFG_DEVICE_IO_MAP(sound3_m660_io_map)
- set_machine_start_cb(config, driver_callback_delegate(&machine_start_m660, this));
+ MCFG_MACHINE_START_OVERRIDE(tsamurai_state,m660)
MCFG_DEVICE_ADD("mainlatch", LS259, 0)
MCFG_ADDRESSABLE_LATCH_Q0_OUT_CB(WRITELINE(*this, tsamurai_state, flip_screen_w))
@@ -854,7 +854,7 @@ MACHINE_CONFIG_START(tsamurai_state::m660)
MCFG_DEVICE_ADD("gfxdecode", GFXDECODE, "palette", gfx_tsamurai)
MCFG_PALETTE_ADD_RRRRGGGGBBBB_PROMS("palette", "proms", 256)
- set_video_start_cb(config, driver_callback_delegate(&video_start_m660, this));
+ MCFG_VIDEO_START_OVERRIDE(tsamurai_state,m660)
/* sound hardware */
SPEAKER(config, "speaker").front_center();