summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/xtheball.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/xtheball.cpp')
-rw-r--r--src/mame/drivers/xtheball.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/mame/drivers/xtheball.cpp b/src/mame/drivers/xtheball.cpp
index b71c5971e79..736da7a8b7d 100644
--- a/src/mame/drivers/xtheball.cpp
+++ b/src/mame/drivers/xtheball.cpp
@@ -208,6 +208,7 @@ void xtheball_state::main_map(address_map &map)
map(0x03040180, 0x0304018f).r(FUNC(xtheball_state::analogy_watchdog_r)).nopw();
map(0x03060000, 0x0306000f).w("dac", FUNC(dac_byte_interface::data_w)).umask16(0xff00);
map(0x04000000, 0x057fffff).rom().region("user2", 0);
+ map(0xc0000000, 0xc00001ff).rw(m_maincpu, FUNC(tms34010_device::io_register_r), FUNC(tms34010_device::io_register_w));
map(0xfff80000, 0xffffffff).rom().region("user1", 0);
}
@@ -291,8 +292,8 @@ INPUT_PORTS_END
*
*************************************/
-void xtheball_state::xtheball(machine_config &config)
-{
+MACHINE_CONFIG_START(xtheball_state::xtheball)
+
TMS34010(config, m_maincpu, 40000000);
m_maincpu->set_addrmap(AS_PROGRAM, &xtheball_state::main_map);
m_maincpu->set_halt_on_reset(false);
@@ -317,25 +318,24 @@ void xtheball_state::xtheball(machine_config &config)
latch3.q_out_cb<3>().set(FUNC(xtheball_state::foreground_mode_w));
// Q3 = video foreground control?
- TICKET_DISPENSER(config, m_ticket, attotime::from_msec(100), TICKET_MOTOR_ACTIVE_HIGH, TICKET_STATUS_ACTIVE_HIGH);
+ MCFG_TICKET_DISPENSER_ADD("ticket", attotime::from_msec(100), TICKET_MOTOR_ACTIVE_HIGH, TICKET_STATUS_ACTIVE_HIGH)
WATCHDOG_TIMER(config, m_watchdog);
/* video hardware */
- TLC34076(config, m_tlc34076, tlc34076_device::TLC34076_6_BIT);
+ MCFG_TLC34076_ADD("tlc34076", TLC34076_6_BIT)
- 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));
+ 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)
/* sound hardware */
SPEAKER(config, "speaker").front_center();
- ZN428E(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.5);
- 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);
-}
+ MCFG_DEVICE_ADD("dac", ZN428E, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.5)
+ 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