diff options
author | mooglyguy <therealmogminer@gmail.com> | 2018-12-27 00:17:16 +0100 |
---|---|---|
committer | mooglyguy <therealmogminer@gmail.com> | 2018-12-27 00:17:55 +0100 |
commit | 61a555c34750cab2c7dd2c8fd5bab1ede1ee175e (patch) | |
tree | ea9375a84ae3aa4a38caddf15a5ba18530a9dee7 /src/mame/drivers/segaufo.cpp | |
parent | d582f7c4a0c20b71d287de8d688d44fd81907505 (diff) |
-devices/machine/msm6253: Removed MCFG macros and added devcb3 support, nw
-devices/machine/timer: Added device support to configure_scanline, nw
-devices/sound/2612intf: Removed MCFG macros.
-drivers/cegac2, segajw, segam1, segas18, segas24, segas32, segaufo, seta, shangha3: Removed MACHINE_CONFIG, mw
Diffstat (limited to 'src/mame/drivers/segaufo.cpp')
-rw-r--r-- | src/mame/drivers/segaufo.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/mame/drivers/segaufo.cpp b/src/mame/drivers/segaufo.cpp index 078d778842c..d1fc9bfcb6e 100644 --- a/src/mame/drivers/segaufo.cpp +++ b/src/mame/drivers/segaufo.cpp @@ -777,15 +777,15 @@ void ufo_state::machine_start() save_item(NAME(m_stepper)); } -MACHINE_CONFIG_START(ufo_state::newufo) - +void ufo_state::newufo(machine_config &config) +{ /* basic machine hardware */ Z80(config, m_maincpu, XTAL(16'000'000)/2); m_maincpu->set_addrmap(AS_PROGRAM, &ufo_state::ufo_map); m_maincpu->set_addrmap(AS_IO, &ufo_state::ufo_portmap); - MCFG_TIMER_DRIVER_ADD_PERIODIC("motor_timer", ufo_state, simulate_xyz, attotime::from_hz(MOTOR_SPEED)) - MCFG_TIMER_DRIVER_ADD_PERIODIC("update_timer", ufo_state, update_info, attotime::from_hz(60)) + TIMER(config, "motor_timer").configure_periodic(FUNC(ufo_state::simulate_xyz), attotime::from_hz(MOTOR_SPEED)); + TIMER(config, "update_timer").configure_periodic(FUNC(ufo_state::update_info), attotime::from_hz(60)); SEGA_315_5296(config, m_io1, XTAL(16'000'000)); // all ports set to input @@ -819,11 +819,11 @@ MACHINE_CONFIG_START(ufo_state::newufo) /* sound hardware */ SPEAKER(config, "mono").front_center(); - MCFG_DEVICE_ADD("ym", YM3438, XTAL(16'000'000)/2) - MCFG_YM2612_IRQ_HANDLER(INPUTLINE("maincpu", 0)) - MCFG_SOUND_ROUTE(0, "mono", 0.40) - MCFG_SOUND_ROUTE(1, "mono", 0.40) -MACHINE_CONFIG_END + ym3438_device &ym(YM3438(config, "ym", XTAL(16'000'000)/2)); + ym.irq_handler().set_inputline("maincpu", 0); + ym.add_route(0, "mono", 0.40); + ym.add_route(1, "mono", 0.40); +} void ufo_state::ufomini(machine_config &config) { |