summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/rowamet.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/rowamet.cpp')
-rw-r--r--src/mame/drivers/rowamet.cpp26
1 files changed, 15 insertions, 11 deletions
diff --git a/src/mame/drivers/rowamet.cpp b/src/mame/drivers/rowamet.cpp
index 19b6f39b9af..cf734674e2b 100644
--- a/src/mame/drivers/rowamet.cpp
+++ b/src/mame/drivers/rowamet.cpp
@@ -222,24 +222,28 @@ TIMER_DEVICE_CALLBACK_MEMBER( rowamet_state::timer_a )
m_digits[++digit] = patterns[m_p_ram[m_out_offs++]&15];
}
-MACHINE_CONFIG_START(rowamet_state::rowamet)
+void rowamet_state::rowamet(machine_config &config)
+{
/* basic machine hardware */
- MCFG_DEVICE_ADD("maincpu", Z80, 1888888)
- MCFG_DEVICE_PROGRAM_MAP(rowamet_map)
- MCFG_DEVICE_ADD("cpu2", Z80, 1888888)
- MCFG_DEVICE_PROGRAM_MAP(rowamet_sub_map)
- MCFG_DEVICE_IO_MAP(rowamet_sub_io)
- MCFG_TIMER_DRIVER_ADD_PERIODIC("timer_a", rowamet_state, timer_a, attotime::from_hz(200))
+ Z80(config, m_maincpu, 1888888);
+ m_maincpu->set_addrmap(AS_PROGRAM, &rowamet_state::rowamet_map);
+
+ Z80(config, m_cpu2, 1888888);
+ m_cpu2->set_addrmap(AS_PROGRAM, &rowamet_state::rowamet_sub_map);
+ m_cpu2->set_addrmap(AS_IO, &rowamet_state::rowamet_sub_io);
+
+ TIMER(config, "timer_a").configure_periodic(FUNC(rowamet_state::timer_a), attotime::from_hz(200));
/* Video */
config.set_default_layout(layout_rowamet);
/* Sound */
SPEAKER(config, "speaker").front_center();
- MCFG_DEVICE_ADD("dac", DAC_8BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.25) // unknown DAC
- MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0)
- MCFG_SOUND_ROUTE(0, "dac", 1.0, DAC_VREF_POS_INPUT) MCFG_SOUND_ROUTE(0, "dac", -1.0, DAC_VREF_NEG_INPUT)
-MACHINE_CONFIG_END
+ DAC_8BIT_R2R(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.25); // unknown DAC
+ voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
+ vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
+ vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT);
+}
/*-------------------------------------------------------------------
/ Conan (1983)