summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/lsasquad.cpp
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2018-05-16 21:56:39 +1000
committer Vas Crabb <vas@vastheman.com>2018-05-16 21:56:39 +1000
commit166638ce8093e04884166296469bda82882890fd (patch)
tree6dedcf3bde5d05843695efaf4949ab285d3193f1 /src/mame/drivers/lsasquad.cpp
parent8e796a2075415427491a541b75884aea6e21f6a9 (diff)
Revert "- Removed MACHINE/SOUND/VIDEO _START/_RESET macros. This has the side effect of making machine-config overrides of these much"
This reverts commit c83e2a853d4e1643fcc85b68ada3c6f7f33adea4. Revert "fix compile. (nw)" This reverts commit a259ba3e366f442a22a9341755ff58163869860c. GCC is being bad and allowing invalid C++ that other compilers reject.
Diffstat (limited to 'src/mame/drivers/lsasquad.cpp')
-rw-r--r--src/mame/drivers/lsasquad.cpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/mame/drivers/lsasquad.cpp b/src/mame/drivers/lsasquad.cpp
index 09fc1bb137d..efd8f870659 100644
--- a/src/mame/drivers/lsasquad.cpp
+++ b/src/mame/drivers/lsasquad.cpp
@@ -543,13 +543,17 @@ WRITE8_MEMBER(lsasquad_state::unk)
{
}
-void lsasquad_state::machine_start_lsasquad()
+MACHINE_START_MEMBER(lsasquad_state,lsasquad)
{
uint8_t *ROM = memregion("maincpu")->base();
membank("bank1")->configure_entries(0, 8, &ROM[0x10000], 0x2000);
}
+MACHINE_RESET_MEMBER(lsasquad_state,lsasquad)
+{
+}
+
/* Note: lsasquad clock values are not verified */
MACHINE_CONFIG_START(lsasquad_state::lsasquad)
@@ -568,7 +572,8 @@ MACHINE_CONFIG_START(lsasquad_state::lsasquad)
/* synchronization of the CPUs */
/* main<->sound synchronization depends on this */
- set_machine_start_cb(config, driver_callback_delegate(&machine_start_lsasquad, this));
+ MCFG_MACHINE_START_OVERRIDE(lsasquad_state,lsasquad)
+ MCFG_MACHINE_RESET_OVERRIDE(lsasquad_state,lsasquad)
MCFG_GENERIC_LATCH_8_ADD("soundlatch")
MCFG_GENERIC_LATCH_DATA_PENDING_CB(WRITELINE("soundnmi", input_merger_device, in_w<0>))
@@ -635,7 +640,8 @@ MACHINE_CONFIG_START(lsasquad_state::daikaiju)
/* synchronization of the CPUs */
/* main<->sound synchronization depends on this */
- set_machine_start_cb(config, driver_callback_delegate(&machine_start_lsasquad, this));
+ MCFG_MACHINE_START_OVERRIDE(lsasquad_state,lsasquad)
+ MCFG_MACHINE_RESET_OVERRIDE(lsasquad_state,lsasquad)
MCFG_GENERIC_LATCH_8_ADD("soundlatch")
MCFG_GENERIC_LATCH_DATA_PENDING_CB(WRITELINE("soundnmi", input_merger_device, in_w<0>))