summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/tp84.c
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2012-09-13 11:15:32 +0000
committer Miodrag Milanovic <mmicko@gmail.com>2012-09-13 11:15:32 +0000
commit219e664785890f52079bae7e74543920d638796a (patch)
tree774d1ab1e7d87ae4d2c1ef335dcef24a28a7d7e8 /src/mame/drivers/tp84.c
parentaf9a5e817d3eefdda79e801056b29167ecbcdef9 (diff)
Massive change, MACHINE_START\RESET, VIDEO_START\RESET and PALETTE_INIT changed to be members of state classes (no whatsnew)
Diffstat (limited to 'src/mame/drivers/tp84.c')
-rw-r--r--src/mame/drivers/tp84.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/mame/drivers/tp84.c b/src/mame/drivers/tp84.c
index 31d107cceb2..6c7cb710f16 100644
--- a/src/mame/drivers/tp84.c
+++ b/src/mame/drivers/tp84.c
@@ -74,10 +74,9 @@ C004 76489 #4 trigger
-static MACHINE_START( tp84 )
+void tp84_state::machine_start()
{
- tp84_state *state = machine.driver_data<tp84_state>();
- state->m_audiocpu = machine.device<cpu_device>("audiocpu");
+ m_audiocpu = machine().device<cpu_device>("audiocpu");
}
@@ -322,7 +321,6 @@ static MACHINE_CONFIG_START( tp84, tp84_state )
MCFG_QUANTUM_TIME(attotime::from_hz(6000)) /* 100 CPU slices per frame - an high value to ensure proper */
/* synchronization of the CPUs */
- MCFG_MACHINE_START(tp84)
/* video hardware */
MCFG_SCREEN_ADD("screen", RASTER)
@@ -335,8 +333,6 @@ static MACHINE_CONFIG_START( tp84, tp84_state )
MCFG_GFXDECODE(tp84)
MCFG_PALETTE_LENGTH(4096)
- MCFG_PALETTE_INIT(tp84)
- MCFG_VIDEO_START(tp84)
/* audio hardware */
MCFG_SPEAKER_STANDARD_MONO("mono")