summaryrefslogtreecommitdiffstats
path: root/src/mame/drivers/airraid.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/airraid.cpp')
-rw-r--r--src/mame/drivers/airraid.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/mame/drivers/airraid.cpp b/src/mame/drivers/airraid.cpp
index 8835909b340..bf405a0441c 100644
--- a/src/mame/drivers/airraid.cpp
+++ b/src/mame/drivers/airraid.cpp
@@ -389,19 +389,19 @@ INPUT_PORTS_END
-void airraid_state::airraid(machine_config &config)
-{
+MACHINE_CONFIG_START(airraid_state::airraid)
+
/* basic machine hardware */
- Z80(config, m_maincpu, XTAL(12'000'000)/2); /* verified on pcb */
- m_maincpu->set_addrmap(AS_PROGRAM, &airraid_state::airraid_map);
- TIMER(config, "scantimer").configure_scanline(FUNC(airraid_state::cshooter_scanline), "airraid_vid:screen", 0, 1);
+ MCFG_DEVICE_ADD(m_maincpu, Z80,XTAL(12'000'000)/2) /* verified on pcb */
+ MCFG_DEVICE_PROGRAM_MAP(airraid_map)
+ MCFG_TIMER_DRIVER_ADD_SCANLINE("scantimer", airraid_state, cshooter_scanline, "airraid_vid:screen", 0, 1)
- z80_device &audiocpu(Z80(config, "audiocpu", XTAL(14'318'181)/4)); /* verified on pcb */
- audiocpu.set_addrmap(AS_PROGRAM, &airraid_state::airraid_sound_map);
- audiocpu.set_addrmap(AS_OPCODES, &airraid_state::airraid_sound_decrypted_opcodes_map);
- audiocpu.set_irq_acknowledge_callback("seibu_sound", FUNC(seibu_sound_device::im0_vector_cb));
+ MCFG_DEVICE_ADD("audiocpu", Z80, XTAL(14'318'181)/4) /* verified on pcb */
+ MCFG_DEVICE_PROGRAM_MAP(airraid_sound_map)
+ MCFG_DEVICE_OPCODES_MAP(airraid_sound_decrypted_opcodes_map)
+ MCFG_DEVICE_IRQ_ACKNOWLEDGE_DEVICE("seibu_sound", seibu_sound_device, im0_vector_cb)
- config.m_perfect_cpu_quantum = subtag("maincpu");
+ MCFG_QUANTUM_PERFECT_CPU("maincpu")
PALETTE(config, m_palette).set_format(palette_device::xBGR_444, 0x100);
@@ -422,14 +422,14 @@ void airraid_state::airraid(machine_config &config)
m_seibu_sound->ym_write_callback().set("ymsnd", FUNC(ym2151_device::write));
SEI80BU(config, "sei80bu", 0).set_device_rom_tag("audiocpu");
-}
+MACHINE_CONFIG_END
-void airraid_state::airraid_crypt(machine_config &config)
-{
+MACHINE_CONFIG_START(airraid_state::airraid_crypt)
airraid(config);
- m_maincpu->set_addrmap(AS_OPCODES, &airraid_state::decrypted_opcodes_map);
-}
+ MCFG_DEVICE_MODIFY("maincpu")
+ MCFG_DEVICE_OPCODES_MAP(decrypted_opcodes_map)
+MACHINE_CONFIG_END