summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/midyunit.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/midyunit.cpp')
-rw-r--r--src/mame/drivers/midyunit.cpp15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/mame/drivers/midyunit.cpp b/src/mame/drivers/midyunit.cpp
index 895dba0889a..a2221d564e9 100644
--- a/src/mame/drivers/midyunit.cpp
+++ b/src/mame/drivers/midyunit.cpp
@@ -1252,14 +1252,15 @@ MACHINE_CONFIG_START(midyunit_state::yunit_adpcm_6bit_faster)
MACHINE_CONFIG_END
-MACHINE_CONFIG_START(midyunit_state::term2)
+void midyunit_state::term2(machine_config &config)
+{
yunit_adpcm_6bit_faster(config);
- MCFG_ADC0844_ADD("adc") // U2 on Coil Lamp Driver Board (A-14915)
- MCFG_ADC0844_CH1_CB(IOPORT("STICK0_X"))
- MCFG_ADC0844_CH2_CB(IOPORT("STICK0_Y"))
- MCFG_ADC0844_CH3_CB(IOPORT("STICK1_X"))
- MCFG_ADC0844_CH4_CB(IOPORT("STICK1_Y"))
-MACHINE_CONFIG_END
+ ADC0844(config, m_term2_adc, 0); // U2 on Coil Lamp Driver Board (A-14915)
+ m_term2_adc->ch1_callback().set_ioport("STICK0_X");
+ m_term2_adc->ch2_callback().set_ioport("STICK0_Y");
+ m_term2_adc->ch3_callback().set_ioport("STICK1_X");
+ m_term2_adc->ch4_callback().set_ioport("STICK1_Y");
+}
MACHINE_CONFIG_START(midyunit_state::mkyawdim)