diff options
Diffstat (limited to 'src/mame/drivers/xtheball.cpp')
-rw-r--r-- | src/mame/drivers/xtheball.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/mame/drivers/xtheball.cpp b/src/mame/drivers/xtheball.cpp index 7c3845d26f0..180189f2a7e 100644 --- a/src/mame/drivers/xtheball.cpp +++ b/src/mame/drivers/xtheball.cpp @@ -291,8 +291,8 @@ INPUT_PORTS_END * *************************************/ -MACHINE_CONFIG_START(xtheball_state::xtheball) - +void xtheball_state::xtheball(machine_config &config) +{ TMS34010(config, m_maincpu, 40000000); m_maincpu->set_addrmap(AS_PROGRAM, &xtheball_state::main_map); m_maincpu->set_halt_on_reset(false); @@ -324,19 +324,19 @@ MACHINE_CONFIG_START(xtheball_state::xtheball) /* video hardware */ TLC34076(config, m_tlc34076, tlc34076_device::TLC34076_6_BIT); - MCFG_SCREEN_ADD("screen", RASTER) - MCFG_SCREEN_RAW_PARAMS(10000000, 640, 114, 626, 257, 24, 248) - MCFG_SCREEN_UPDATE_DEVICE("maincpu", tms34010_device, tms340x0_rgb32) + screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_RASTER)); + screen.set_raw(10000000, 640, 114, 626, 257, 24, 248); + screen.set_screen_update("maincpu", FUNC(tms34010_device::tms340x0_rgb32)); /* sound hardware */ SPEAKER(config, "speaker").front_center(); - MCFG_DEVICE_ADD("dac", ZN428E, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.5) + ZN428E(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.5); voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); vref.set_output(5.0); vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); -MACHINE_CONFIG_END +} |