summaryrefslogtreecommitdiffstats
path: root/src/mame/drivers/stuntair.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/stuntair.cpp')
-rw-r--r--src/mame/drivers/stuntair.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/mame/drivers/stuntair.cpp b/src/mame/drivers/stuntair.cpp
index 53bbdaf1fcc..df68242b443 100644
--- a/src/mame/drivers/stuntair.cpp
+++ b/src/mame/drivers/stuntair.cpp
@@ -516,21 +516,21 @@ void stuntair_state::machine_reset()
MACHINE_CONFIG_START(stuntair_state::stuntair)
/* basic machine hardware */
- MCFG_CPU_ADD("maincpu", Z80, XTAL(18'432'000)/6) /* 3 MHz? */
- MCFG_CPU_PROGRAM_MAP(stuntair_map)
+ MCFG_DEVICE_ADD("maincpu", Z80, XTAL(18'432'000)/6) /* 3 MHz? */
+ MCFG_DEVICE_PROGRAM_MAP(stuntair_map)
- MCFG_CPU_ADD("audiocpu", Z80, XTAL(18'432'000)/6) /* 3 MHz? */
- MCFG_CPU_PROGRAM_MAP(stuntair_sound_map)
- MCFG_CPU_IO_MAP(stuntair_sound_portmap)
- MCFG_CPU_PERIODIC_INT_DRIVER(stuntair_state, irq0_line_hold, 420) // drives music tempo, timing is approximate based on PCB audio recording.. and where is irq ack?
+ MCFG_DEVICE_ADD("audiocpu", Z80, XTAL(18'432'000)/6) /* 3 MHz? */
+ MCFG_DEVICE_PROGRAM_MAP(stuntair_sound_map)
+ MCFG_DEVICE_IO_MAP(stuntair_sound_portmap)
+ MCFG_DEVICE_PERIODIC_INT_DRIVER(stuntair_state, irq0_line_hold, 420) // drives music tempo, timing is approximate based on PCB audio recording.. and where is irq ack?
MCFG_DEVICE_ADD("mainlatch", LS259, 0) // type and location not verified
MCFG_ADDRESSABLE_LATCH_Q0_OUT_CB(NOOP) // set but never cleared
- MCFG_ADDRESSABLE_LATCH_Q1_OUT_CB(WRITELINE(stuntair_state, nmi_enable_w))
+ MCFG_ADDRESSABLE_LATCH_Q1_OUT_CB(WRITELINE(*this, stuntair_state, nmi_enable_w))
MCFG_ADDRESSABLE_LATCH_Q2_OUT_CB(NOOP) // cleared at start
- MCFG_ADDRESSABLE_LATCH_Q3_OUT_CB(WRITELINE(stuntair_state, spritebank1_w))
+ MCFG_ADDRESSABLE_LATCH_Q3_OUT_CB(WRITELINE(*this, stuntair_state, spritebank1_w))
MCFG_ADDRESSABLE_LATCH_Q4_OUT_CB(NOOP) // cleared at start
- MCFG_ADDRESSABLE_LATCH_Q5_OUT_CB(WRITELINE(stuntair_state, spritebank0_w))
+ MCFG_ADDRESSABLE_LATCH_Q5_OUT_CB(WRITELINE(*this, stuntair_state, spritebank0_w))
MCFG_ADDRESSABLE_LATCH_Q6_OUT_CB(NOOP) // cleared at start
MCFG_ADDRESSABLE_LATCH_Q7_OUT_CB(NOOP) // cleared at start
@@ -546,7 +546,7 @@ MACHINE_CONFIG_START(stuntair_state::stuntair)
MCFG_SCREEN_VISIBLE_AREA(0, 256-1, 16, 256-16-1)
MCFG_SCREEN_UPDATE_DRIVER(stuntair_state, screen_update_stuntair)
MCFG_SCREEN_PALETTE("palette")
- MCFG_SCREEN_VBLANK_CALLBACK(WRITELINE(stuntair_state, stuntair_irq))
+ MCFG_SCREEN_VBLANK_CALLBACK(WRITELINE(*this, stuntair_state, stuntair_irq))
MCFG_GFXDECODE_ADD("gfxdecode", "palette", stuntair)
MCFG_PALETTE_ADD("palette", 0x100+2)
@@ -558,12 +558,12 @@ MACHINE_CONFIG_START(stuntair_state::stuntair)
MCFG_GENERIC_LATCH_8_ADD("soundlatch")
- MCFG_SOUND_ADD("ay1", AY8910, XTAL(18'432'000)/12)
- MCFG_AY8910_PORT_A_READ_CB(DEVREAD8("soundlatch", generic_latch_8_device, read))
- MCFG_AY8910_PORT_B_WRITE_CB(WRITE8(stuntair_state, ay8910_portb_w))
+ MCFG_DEVICE_ADD("ay1", AY8910, XTAL(18'432'000)/12)
+ MCFG_AY8910_PORT_A_READ_CB(READ8("soundlatch", generic_latch_8_device, read))
+ MCFG_AY8910_PORT_B_WRITE_CB(WRITE8(*this, stuntair_state, ay8910_portb_w))
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
- MCFG_SOUND_ADD("ay2", AY8910, XTAL(18'432'000)/12)
+ MCFG_DEVICE_ADD("ay2", AY8910, XTAL(18'432'000)/12)
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
MACHINE_CONFIG_END