summaryrefslogtreecommitdiffstats
path: root/src/mame/drivers/lordgun.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/lordgun.cpp')
-rw-r--r--src/mame/drivers/lordgun.cpp54
1 files changed, 27 insertions, 27 deletions
diff --git a/src/mame/drivers/lordgun.cpp b/src/mame/drivers/lordgun.cpp
index 8284da4d4f2..eb6bbe627ee 100644
--- a/src/mame/drivers/lordgun.cpp
+++ b/src/mame/drivers/lordgun.cpp
@@ -639,28 +639,28 @@ void lordgun_state::machine_start()
}
MACHINE_CONFIG_START(lordgun_state::lordgun)
- MCFG_CPU_ADD("maincpu", M68000, XTAL(20'000'000) / 2)
- MCFG_CPU_PROGRAM_MAP(lordgun_map)
- MCFG_CPU_VBLANK_INT_DRIVER("screen", lordgun_state, irq4_line_hold)
+ MCFG_DEVICE_ADD("maincpu", M68000, XTAL(20'000'000) / 2)
+ MCFG_DEVICE_PROGRAM_MAP(lordgun_map)
+ MCFG_DEVICE_VBLANK_INT_DRIVER("screen", lordgun_state, irq4_line_hold)
- MCFG_CPU_ADD("soundcpu", Z80, XTAL(20'000'000) / 4)
- MCFG_CPU_PROGRAM_MAP(lordgun_soundmem_map)
- MCFG_CPU_IO_MAP(lordgun_soundio_map)
+ MCFG_DEVICE_ADD("soundcpu", Z80, XTAL(20'000'000) / 4)
+ MCFG_DEVICE_PROGRAM_MAP(lordgun_soundmem_map)
+ MCFG_DEVICE_IO_MAP(lordgun_soundio_map)
MCFG_DEVICE_ADD("ppi8255_0", I8255A, 0)
MCFG_I8255_IN_PORTA_CB(IOPORT("DIP"))
- MCFG_I8255_OUT_PORTA_CB(WRITE8(lordgun_state, fake_w))
- MCFG_I8255_OUT_PORTB_CB(WRITE8(lordgun_state, lordgun_eeprom_w))
+ MCFG_I8255_OUT_PORTA_CB(WRITE8(*this, lordgun_state, fake_w))
+ MCFG_I8255_OUT_PORTB_CB(WRITE8(*this, lordgun_state, lordgun_eeprom_w))
MCFG_I8255_IN_PORTC_CB(IOPORT("SERVICE"))
- MCFG_I8255_OUT_PORTC_CB(WRITE8(lordgun_state, fake2_w))
+ MCFG_I8255_OUT_PORTC_CB(WRITE8(*this, lordgun_state, fake2_w))
MCFG_DEVICE_ADD("ppi8255_1", I8255A, 0)
MCFG_I8255_IN_PORTA_CB(IOPORT("START1"))
- MCFG_I8255_OUT_PORTA_CB(WRITE8(lordgun_state, fake_w))
+ MCFG_I8255_OUT_PORTA_CB(WRITE8(*this, lordgun_state, fake_w))
MCFG_I8255_IN_PORTB_CB(IOPORT("START2"))
- MCFG_I8255_OUT_PORTB_CB(WRITE8(lordgun_state, fake_w))
+ MCFG_I8255_OUT_PORTB_CB(WRITE8(*this, lordgun_state, fake_w))
MCFG_I8255_IN_PORTC_CB(IOPORT("COIN"))
- MCFG_I8255_OUT_PORTC_CB(WRITE8(lordgun_state, fake_w))
+ MCFG_I8255_OUT_PORTC_CB(WRITE8(*this, lordgun_state, fake_w))
MCFG_EEPROM_SERIAL_93C46_ADD("eeprom")
@@ -681,7 +681,7 @@ MACHINE_CONFIG_START(lordgun_state::lordgun)
MCFG_GENERIC_LATCH_8_ADD("soundlatch")
MCFG_GENERIC_LATCH_8_ADD("soundlatch2")
- MCFG_SOUND_ADD("ymsnd", YM3812, XTAL(3'579'545))
+ MCFG_DEVICE_ADD("ymsnd", YM3812, XTAL(3'579'545))
MCFG_YM3812_IRQ_HANDLER(INPUTLINE("soundcpu", 0))
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
@@ -691,28 +691,28 @@ MACHINE_CONFIG_END
MACHINE_CONFIG_START(lordgun_state::aliencha)
- MCFG_CPU_ADD("maincpu", M68000, XTAL(20'000'000) / 2)
- MCFG_CPU_PROGRAM_MAP(aliencha_map)
- MCFG_CPU_VBLANK_INT_DRIVER("screen", lordgun_state, irq4_line_hold)
+ MCFG_DEVICE_ADD("maincpu", M68000, XTAL(20'000'000) / 2)
+ MCFG_DEVICE_PROGRAM_MAP(aliencha_map)
+ MCFG_DEVICE_VBLANK_INT_DRIVER("screen", lordgun_state, irq4_line_hold)
- MCFG_CPU_ADD("soundcpu", Z80, XTAL(20'000'000) / 4)
- MCFG_CPU_PROGRAM_MAP(lordgun_soundmem_map)
- MCFG_CPU_IO_MAP(aliencha_soundio_map)
+ MCFG_DEVICE_ADD("soundcpu", Z80, XTAL(20'000'000) / 4)
+ MCFG_DEVICE_PROGRAM_MAP(lordgun_soundmem_map)
+ MCFG_DEVICE_IO_MAP(aliencha_soundio_map)
MCFG_DEVICE_ADD("ppi8255_0", I8255A, 0)
- MCFG_I8255_IN_PORTA_CB(READ8(lordgun_state, aliencha_dip_r))
- MCFG_I8255_OUT_PORTA_CB(WRITE8(lordgun_state, fake2_w))
- MCFG_I8255_OUT_PORTB_CB(WRITE8(lordgun_state, aliencha_eeprom_w))
+ MCFG_I8255_IN_PORTA_CB(READ8(*this, lordgun_state, aliencha_dip_r))
+ MCFG_I8255_OUT_PORTA_CB(WRITE8(*this, lordgun_state, fake2_w))
+ MCFG_I8255_OUT_PORTB_CB(WRITE8(*this, lordgun_state, aliencha_eeprom_w))
MCFG_I8255_IN_PORTC_CB(IOPORT("SERVICE"))
- MCFG_I8255_OUT_PORTC_CB(WRITE8(lordgun_state, aliencha_dip_w))
+ MCFG_I8255_OUT_PORTC_CB(WRITE8(*this, lordgun_state, aliencha_dip_w))
MCFG_DEVICE_ADD("ppi8255_1", I8255A, 0)
MCFG_I8255_IN_PORTA_CB(IOPORT("P1"))
- MCFG_I8255_OUT_PORTA_CB(WRITE8(lordgun_state, fake_w))
+ MCFG_I8255_OUT_PORTA_CB(WRITE8(*this, lordgun_state, fake_w))
MCFG_I8255_IN_PORTB_CB(IOPORT("P2"))
- MCFG_I8255_OUT_PORTB_CB(WRITE8(lordgun_state, fake_w))
+ MCFG_I8255_OUT_PORTB_CB(WRITE8(*this, lordgun_state, fake_w))
MCFG_I8255_IN_PORTC_CB(IOPORT("COIN"))
- MCFG_I8255_OUT_PORTC_CB(WRITE8(lordgun_state, fake_w))
+ MCFG_I8255_OUT_PORTC_CB(WRITE8(*this, lordgun_state, fake_w))
MCFG_EEPROM_SERIAL_93C46_ADD("eeprom")
@@ -733,7 +733,7 @@ MACHINE_CONFIG_START(lordgun_state::aliencha)
MCFG_GENERIC_LATCH_8_ADD("soundlatch")
MCFG_GENERIC_LATCH_8_ADD("soundlatch2")
- MCFG_SOUND_ADD("ymf", YMF278B, 26000000) // ? 26MHz matches video (decrease for faster music tempo)
+ MCFG_DEVICE_ADD("ymf", YMF278B, 26000000) // ? 26MHz matches video (decrease for faster music tempo)
MCFG_DEVICE_ADDRESS_MAP(0, ymf278_map)
MCFG_YMF278B_IRQ_HANDLER(INPUTLINE("soundcpu", 0))
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.5)