summaryrefslogtreecommitdiffstats
path: root/src/mame/drivers/vastar.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/vastar.cpp')
-rw-r--r--src/mame/drivers/vastar.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/mame/drivers/vastar.cpp b/src/mame/drivers/vastar.cpp
index 33908279968..e221bf7962f 100644
--- a/src/mame/drivers/vastar.cpp
+++ b/src/mame/drivers/vastar.cpp
@@ -420,21 +420,21 @@ INTERRUPT_GEN_MEMBER(vastar_state::vblank_irq)
MACHINE_CONFIG_START(vastar_state::vastar)
/* basic machine hardware */
- MCFG_CPU_ADD("maincpu", Z80, XTAL(18'432'000)/6)
- MCFG_CPU_PROGRAM_MAP(main_map)
- MCFG_CPU_IO_MAP(main_port_map)
- MCFG_CPU_VBLANK_INT_DRIVER("screen", vastar_state, vblank_irq)
+ MCFG_DEVICE_ADD("maincpu", Z80, XTAL(18'432'000)/6)
+ MCFG_DEVICE_PROGRAM_MAP(main_map)
+ MCFG_DEVICE_IO_MAP(main_port_map)
+ MCFG_DEVICE_VBLANK_INT_DRIVER("screen", vastar_state, vblank_irq)
- MCFG_CPU_ADD("sub", Z80, XTAL(18'432'000)/6)
- MCFG_CPU_PROGRAM_MAP(cpu2_map)
- MCFG_CPU_IO_MAP(cpu2_port_map)
- MCFG_CPU_PERIODIC_INT_DRIVER(vastar_state, irq0_line_hold, 242) /* 4 * vsync_freq(60.58) measured, it is not known yet how long it is asserted so we'll use HOLD_LINE for now */
+ MCFG_DEVICE_ADD("sub", Z80, XTAL(18'432'000)/6)
+ MCFG_DEVICE_PROGRAM_MAP(cpu2_map)
+ MCFG_DEVICE_IO_MAP(cpu2_port_map)
+ MCFG_DEVICE_PERIODIC_INT_DRIVER(vastar_state, irq0_line_hold, 242) /* 4 * vsync_freq(60.58) measured, it is not known yet how long it is asserted so we'll use HOLD_LINE for now */
MCFG_QUANTUM_TIME(attotime::from_hz(600)) /* 10 CPU slices per frame - seems enough to ensure proper synchronization of the CPUs */
MCFG_DEVICE_ADD("mainlatch", LS259, 0)
- MCFG_ADDRESSABLE_LATCH_Q0_OUT_CB(WRITELINE(vastar_state, nmi_mask_w))
- MCFG_ADDRESSABLE_LATCH_Q1_OUT_CB(WRITELINE(vastar_state, flip_screen_w))
+ MCFG_ADDRESSABLE_LATCH_Q0_OUT_CB(WRITELINE(*this, vastar_state, nmi_mask_w))
+ MCFG_ADDRESSABLE_LATCH_Q1_OUT_CB(WRITELINE(*this, vastar_state, flip_screen_w))
MCFG_ADDRESSABLE_LATCH_Q2_OUT_CB(INPUTLINE("sub", INPUT_LINE_RESET)) MCFG_DEVCB_INVERT
MCFG_WATCHDOG_ADD("watchdog")
@@ -454,7 +454,7 @@ MACHINE_CONFIG_START(vastar_state::vastar)
/* sound hardware */
MCFG_SPEAKER_STANDARD_MONO("mono")
- MCFG_SOUND_ADD("aysnd", AY8910, XTAL(18'432'000)/12)
+ MCFG_DEVICE_ADD("aysnd", AY8910, XTAL(18'432'000)/12)
MCFG_AY8910_PORT_A_READ_CB(IOPORT("DSW1"))
MCFG_AY8910_PORT_B_READ_CB(IOPORT("DSW2"))
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)