summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/gokidetor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/gokidetor.cpp')
-rw-r--r--src/mame/drivers/gokidetor.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/mame/drivers/gokidetor.cpp b/src/mame/drivers/gokidetor.cpp
index a1683cda21c..2ed9b01c8a9 100644
--- a/src/mame/drivers/gokidetor.cpp
+++ b/src/mame/drivers/gokidetor.cpp
@@ -121,10 +121,9 @@ void gokidetor_state::sound_map(address_map &map)
}
-void gokidetor_state::gokidetor(machine_config &config)
-{
- Z80(config, m_maincpu, XTAL(16'000'000) / 4); // divider not verified
- m_maincpu->set_addrmap(AS_PROGRAM, &gokidetor_state::main_map);
+MACHINE_CONFIG_START(gokidetor_state::gokidetor)
+ MCFG_DEVICE_ADD("maincpu", Z80, XTAL(16'000'000) / 4) // divider not verified
+ MCFG_DEVICE_PROGRAM_MAP(main_map)
// IRQ from ???
// NMI related to E002 input and TE7750 port 7
@@ -141,8 +140,8 @@ void gokidetor_state::gokidetor(machine_config &config)
te7750.out_port8_cb().set(FUNC(gokidetor_state::out8_w));
te7750.out_port9_cb().set(FUNC(gokidetor_state::out9_w));
- z80_device &soundcpu(Z80(config, "soundcpu", 4000000));
- soundcpu.set_addrmap(AS_PROGRAM, &gokidetor_state::sound_map);
+ MCFG_DEVICE_ADD("soundcpu", Z80, 4000000)
+ MCFG_DEVICE_PROGRAM_MAP(sound_map)
pc060ha_device &ciu(PC060HA(config, "ciu", 0));
ciu.set_master_tag(m_maincpu);
@@ -158,8 +157,9 @@ void gokidetor_state::gokidetor(machine_config &config)
ymsnd.add_route(2, "mono", 0.25);
ymsnd.add_route(3, "mono", 0.80);
- OKIM6295(config, "oki", 1056000, okim6295_device::PIN7_HIGH).add_route(ALL_OUTPUTS, "mono", 0.50); // clock frequency & pin 7 not verified
-}
+ MCFG_DEVICE_ADD("oki", OKIM6295, 1056000, okim6295_device::PIN7_HIGH) // clock frequency & pin 7 not verified
+ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
+MACHINE_CONFIG_END
INPUT_PORTS_START( gokidetor )
PORT_START("IN1")