summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/taito.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/taito.cpp')
-rw-r--r--src/mame/drivers/taito.cpp15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/mame/drivers/taito.cpp b/src/mame/drivers/taito.cpp
index 466cb0926b0..eb3d87dc32d 100644
--- a/src/mame/drivers/taito.cpp
+++ b/src/mame/drivers/taito.cpp
@@ -350,13 +350,14 @@ TIMER_DEVICE_CALLBACK_MEMBER( taito_state::timer_a )
m_digits[++digit] = patterns[m_p_ram[m_out_offs++]&15];
}
-MACHINE_CONFIG_START(taito_state::taito)
+void taito_state::taito(machine_config &config)
+{
/* basic machine hardware */
- MCFG_DEVICE_ADD(m_maincpu, I8080, 19000000/9)
- MCFG_DEVICE_PROGRAM_MAP(taito_map)
+ I8080(config, m_maincpu, 19000000/9);
+ m_maincpu->set_addrmap(AS_PROGRAM, &taito_state::taito_map);
- MCFG_DEVICE_ADD(m_cpu2, M6802, 1000000) // cpu & clock are a guess
- MCFG_DEVICE_PROGRAM_MAP(taito_sub_map)
+ M6802(config, m_cpu2, 1000000); // cpu & clock are a guess
+ m_cpu2->set_addrmap(AS_PROGRAM, &taito_state::taito_sub_map);
/* Video */
config.set_default_layout(layout_taito);
@@ -365,7 +366,7 @@ MACHINE_CONFIG_START(taito_state::taito)
genpin_audio(config);
SPEAKER(config, "speaker").front_center();
- MCFG_DEVICE_ADD("dac", DAC_8BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.475) // unknown DAC
+ DAC_8BIT_R2R(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.475); // unknown DAC
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
vref.set_output(5.0);
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
@@ -382,7 +383,7 @@ MACHINE_CONFIG_START(taito_state::taito)
m_pia->irqb_handler().set_inputline(m_cpu2, M6802_IRQ_LINE);
TIMER(config, "timer_a").configure_periodic(FUNC(taito_state::timer_a), attotime::from_hz(200));
-MACHINE_CONFIG_END
+}
void taito_state::shock(machine_config &config)
{