summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/atarigt.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/atarigt.cpp')
-rw-r--r--src/mame/drivers/atarigt.cpp34
1 files changed, 16 insertions, 18 deletions
diff --git a/src/mame/drivers/atarigt.cpp b/src/mame/drivers/atarigt.cpp
index c5cba11ebf4..3fed7dafbdc 100644
--- a/src/mame/drivers/atarigt.cpp
+++ b/src/mame/drivers/atarigt.cpp
@@ -821,9 +821,14 @@ MACHINE_CONFIG_START(atarigt_state::atarigt)
MCFG_ATARIRLE_ADD("rle", modesc)
+ /* sound hardware */
+ ATARI_CAGE(config, m_cage, 0);
+ m_cage->irq_handler().set(FUNC(atarigt_state::cage_irq_callback));
+
MACHINE_CONFIG_END
-MACHINE_CONFIG_START(atarigt_state::tmek)
+void atarigt_state::tmek(machine_config &config)
+{
atarigt(config);
ADC0809(config, m_adc, ATARI_CLOCK_14MHz/16); // should be 447 kHz according to schematics, but that fails the self-test
@@ -832,29 +837,22 @@ MACHINE_CONFIG_START(atarigt_state::tmek)
m_adc->in_callback<6>().set_ioport("AN2");
m_adc->in_callback<7>().set_ioport("AN3");
- /* sound hardware */
- MCFG_DEVICE_ADD("cage", ATARI_CAGE, 0)
- MCFG_ATARI_CAGE_SPEEDUP(0x4fad)
- MCFG_ATARI_CAGE_IRQ_CALLBACK(WRITE8(*this, atarigt_state,cage_irq_callback))
-MACHINE_CONFIG_END
+ m_cage->set_speedup(0x4fad);
+}
-MACHINE_CONFIG_START(atarigt_state::primrage)
+void atarigt_state::primrage(machine_config &config)
+{
atarigt(config);
- /* sound hardware */
- MCFG_DEVICE_ADD("cage", ATARI_CAGE, 0)
- MCFG_ATARI_CAGE_SPEEDUP(0x42f2)
- MCFG_ATARI_CAGE_IRQ_CALLBACK(WRITE8(*this, atarigt_state,cage_irq_callback))
-MACHINE_CONFIG_END
+ m_cage->set_speedup(0x42f2);
+}
-MACHINE_CONFIG_START(atarigt_state::primrage20)
+void atarigt_state::primrage20(machine_config &config)
+{
atarigt(config);
- /* sound hardware */
- MCFG_DEVICE_ADD("cage", ATARI_CAGE, 0)
- MCFG_ATARI_CAGE_SPEEDUP(0x48a4)
- MCFG_ATARI_CAGE_IRQ_CALLBACK(WRITE8(*this, atarigt_state,cage_irq_callback))
-MACHINE_CONFIG_END
+ m_cage->set_speedup(0x48a4);
+}
/*************************************
*