summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/wacky_gator.cpp
diff options
context:
space:
mode:
author andreasnaive <andreasnaive@gmail.com>2019-03-25 23:13:40 +0100
committer andreasnaive <andreasnaive@gmail.com>2019-03-25 23:13:40 +0100
commitb380514764cf857469bae61c11143a19f79a74c5 (patch)
tree63c8012e262618f08a332da31dd714281aa2c5ed /src/mame/drivers/wacky_gator.cpp
parentc24473ddff715ecec2e258a6eb38960cf8c8e98e (diff)
Revert "conflict resolution (nw)"
This reverts commit c24473ddff715ecec2e258a6eb38960cf8c8e98e, reversing changes made to 009cba4fb8102102168ef32870892438327f3705.
Diffstat (limited to 'src/mame/drivers/wacky_gator.cpp')
-rw-r--r--src/mame/drivers/wacky_gator.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/mame/drivers/wacky_gator.cpp b/src/mame/drivers/wacky_gator.cpp
index 4859b884b5e..9b5939616f9 100644
--- a/src/mame/drivers/wacky_gator.cpp
+++ b/src/mame/drivers/wacky_gator.cpp
@@ -281,26 +281,26 @@ void wackygtr_state::program_map(address_map &map)
map(0x8000, 0xffff).rom();
}
-void wackygtr_state::wackygtr(machine_config &config)
-{
- MC6809(config, m_maincpu, XTAL(3'579'545)); // HD68B09P
- m_maincpu->set_addrmap(AS_PROGRAM, &wackygtr_state::program_map);
- m_maincpu->set_periodic_int(FUNC(wackygtr_state::irq0_line_assert), attotime::from_hz(50)); // FIXME
+MACHINE_CONFIG_START(wackygtr_state::wackygtr)
+
+ MCFG_DEVICE_ADD("maincpu", MC6809, XTAL(3'579'545)) // HD68B09P
+ MCFG_DEVICE_PROGRAM_MAP(program_map)
+ MCFG_DEVICE_PERIODIC_INT_DRIVER(wackygtr_state, irq0_line_assert, 50) // FIXME
- TIMER(config, "nmi_timer").configure_periodic(FUNC(wackygtr_state::nmi_timer), attotime::from_hz(100)); // FIXME
+ MCFG_TIMER_DRIVER_ADD_PERIODIC("nmi_timer", wackygtr_state, nmi_timer, attotime::from_hz(100)) // FIXME
/* Video */
config.set_default_layout(layout_wackygtr);
/* Sound */
SPEAKER(config, "mono").front_center();
- MSM5205(config, m_msm, XTAL(384'000));
- m_msm->vck_legacy_callback().set(FUNC(wackygtr_state::adpcm_int)); /* IRQ handler */
- m_msm->set_prescaler_selector(msm5205_device::S48_4B); /* 8 KHz, 4 Bits */
- m_msm->add_route(ALL_OUTPUTS, "mono", 1.0);
+ MCFG_DEVICE_ADD("msm", MSM5205, XTAL(384'000) )
+ MCFG_MSM5205_VCLK_CB(WRITELINE(*this, wackygtr_state, adpcm_int)) /* IRQ handler */
+ MCFG_MSM5205_PRESCALER_SELECTOR(S48_4B) /* 8 KHz, 4 Bits */
+ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
- ym2413_device &ymsnd(YM2413(config, "ymsnd", XTAL(3'579'545)));
- ymsnd.add_route(ALL_OUTPUTS, "mono", 1.0);
+ MCFG_DEVICE_ADD("ymsnd", YM2413, XTAL(3'579'545) )
+ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
i8255_device &ppi0(I8255(config, "i8255_0"));
ppi0.out_pa_callback().set(FUNC(wackygtr_state::status_lamps_w));
@@ -333,8 +333,8 @@ void wackygtr_state::wackygtr(machine_config &config)
m_pit8253[1]->set_clk<2>(XTAL(3'579'545)/16); // this is a guess
m_pit8253[1]->out_handler<2>().set(FUNC(wackygtr_state::alligator_ck<4>));
- TICKET_DISPENSER(config, "ticket", attotime::from_msec(200), TICKET_MOTOR_ACTIVE_HIGH, TICKET_STATUS_ACTIVE_HIGH);
-}
+ MCFG_TICKET_DISPENSER_ADD("ticket", attotime::from_msec(200), TICKET_MOTOR_ACTIVE_HIGH, TICKET_STATUS_ACTIVE_HIGH)
+MACHINE_CONFIG_END
ROM_START( wackygtr )