summaryrefslogtreecommitdiffstats
path: root/src/mame/drivers/tutankhm.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/tutankhm.cpp')
-rw-r--r--src/mame/drivers/tutankhm.cpp27
1 files changed, 12 insertions, 15 deletions
diff --git a/src/mame/drivers/tutankhm.cpp b/src/mame/drivers/tutankhm.cpp
index 7a55db6252a..ba6ebff8cf9 100644
--- a/src/mame/drivers/tutankhm.cpp
+++ b/src/mame/drivers/tutankhm.cpp
@@ -211,7 +211,7 @@ INPUT_PORTS_END
*
*************************************/
-MACHINE_START_MEMBER(tutankhm_state,tutankhm)
+void tutankhm_state::machine_start()
{
membank("bank1")->configure_entries(0, 16, memregion("maincpu")->base() + 0x10000, 0x1000);
@@ -221,7 +221,7 @@ MACHINE_START_MEMBER(tutankhm_state,tutankhm)
save_item(NAME(m_flip_y));
}
-MACHINE_RESET_MEMBER(tutankhm_state,tutankhm)
+void tutankhm_state::machine_reset()
{
m_irq_toggle = 0;
}
@@ -229,21 +229,18 @@ MACHINE_RESET_MEMBER(tutankhm_state,tutankhm)
MACHINE_CONFIG_START(tutankhm_state::tutankhm)
/* basic machine hardware */
- MCFG_CPU_ADD("maincpu", MC6809E, XTAL(18'432'000)/12) /* 1.5 MHz ??? */
- MCFG_CPU_PROGRAM_MAP(main_map)
-
- MCFG_MACHINE_START_OVERRIDE(tutankhm_state,tutankhm)
- MCFG_MACHINE_RESET_OVERRIDE(tutankhm_state,tutankhm)
+ MCFG_DEVICE_ADD("maincpu", MC6809E, XTAL(18'432'000)/12) /* 1.5 MHz ??? */
+ MCFG_DEVICE_PROGRAM_MAP(main_map)
MCFG_DEVICE_ADD("mainlatch", LS259, 0) // C3
- MCFG_ADDRESSABLE_LATCH_Q0_OUT_CB(WRITELINE(tutankhm_state, irq_enable_w))
+ MCFG_ADDRESSABLE_LATCH_Q0_OUT_CB(WRITELINE(*this, tutankhm_state, irq_enable_w))
MCFG_ADDRESSABLE_LATCH_Q1_OUT_CB(NOOP) // PAY OUT - not used
- MCFG_ADDRESSABLE_LATCH_Q2_OUT_CB(WRITELINE(tutankhm_state, coin_counter_2_w))
- MCFG_ADDRESSABLE_LATCH_Q3_OUT_CB(WRITELINE(tutankhm_state, coin_counter_1_w))
+ MCFG_ADDRESSABLE_LATCH_Q2_OUT_CB(WRITELINE(*this, tutankhm_state, coin_counter_2_w))
+ MCFG_ADDRESSABLE_LATCH_Q3_OUT_CB(WRITELINE(*this, tutankhm_state, coin_counter_1_w))
MCFG_ADDRESSABLE_LATCH_Q4_OUT_CB(NOOP) // starfield?
- MCFG_ADDRESSABLE_LATCH_Q5_OUT_CB(DEVWRITELINE("timeplt_audio", timeplt_audio_device, mute_w))
- MCFG_ADDRESSABLE_LATCH_Q6_OUT_CB(WRITELINE(tutankhm_state, flip_screen_x_w))
- MCFG_ADDRESSABLE_LATCH_Q7_OUT_CB(WRITELINE(tutankhm_state, flip_screen_y_w))
+ MCFG_ADDRESSABLE_LATCH_Q5_OUT_CB(WRITELINE("timeplt_audio", timeplt_audio_device, mute_w))
+ MCFG_ADDRESSABLE_LATCH_Q6_OUT_CB(WRITELINE(*this, tutankhm_state, flip_screen_x_w))
+ MCFG_ADDRESSABLE_LATCH_Q7_OUT_CB(WRITELINE(*this, tutankhm_state, flip_screen_y_w))
MCFG_WATCHDOG_ADD("watchdog")
@@ -254,14 +251,14 @@ MACHINE_CONFIG_START(tutankhm_state::tutankhm)
MCFG_SCREEN_SIZE(32*8, 32*8)
MCFG_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) /* not sure about the visible area */
MCFG_SCREEN_UPDATE_DRIVER(tutankhm_state, screen_update_tutankhm)
- MCFG_SCREEN_VBLANK_CALLBACK(WRITELINE(tutankhm_state, vblank_irq))
+ MCFG_SCREEN_VBLANK_CALLBACK(WRITELINE(*this, tutankhm_state, vblank_irq))
MCFG_PALETTE_ADD("palette", 16)
MCFG_PALETTE_FORMAT(BBGGGRRR)
/* sound hardware */
- MCFG_SOUND_ADD("timeplt_audio", TIMEPLT_AUDIO, 0)
+ MCFG_DEVICE_ADD("timeplt_audio", TIMEPLT_AUDIO)
MACHINE_CONFIG_END