diff options
Diffstat (limited to 'src/mame/drivers/asteroid.cpp')
-rw-r--r-- | src/mame/drivers/asteroid.cpp | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/src/mame/drivers/asteroid.cpp b/src/mame/drivers/asteroid.cpp index 53145eec6bf..e3d97ac9747 100644 --- a/src/mame/drivers/asteroid.cpp +++ b/src/mame/drivers/asteroid.cpp @@ -808,33 +808,33 @@ void asteroid_state::astdelux(machine_config &config) audiolatch.q_out_cb<5>().set(FUNC(asteroid_state::coin_counter_left_w)); // LEFT COIN audiolatch.q_out_cb<6>().set(FUNC(asteroid_state::coin_counter_center_w)); // CENTER COIN audiolatch.q_out_cb<7>().set(FUNC(asteroid_state::coin_counter_right_w)); // RIGHT COIN -} +MACHINE_CONFIG_END -void asteroid_state::llander(machine_config &config) -{ +MACHINE_CONFIG_START(asteroid_state::llander) asteroid_base(config); /* basic machine hardware */ - m_maincpu->set_addrmap(AS_PROGRAM, &asteroid_state::llander_map); - m_maincpu->set_periodic_int(FUNC(asteroid_state::llander_interrupt), attotime::from_hz(MASTER_CLOCK/4096/12)); - - screen_device &screen(*subdevice<screen_device>("screen")); - screen.set_refresh_hz(CLOCK_3KHZ/12/6); - screen.set_visarea(522, 1566, 270, 1070); - screen.set_screen_update("vector", FUNC(vector_device::screen_update)); - - output_latch_device &outlatch(*subdevice<output_latch_device>("outlatch")); // LS174 at N11 - outlatch.bit_handler<0>().set_output("lamp4"); // LAMP5 (COMMAND MISSION) - outlatch.bit_handler<1>().set_output("lamp3"); // LAMP4 (PRIME MISSION) - outlatch.bit_handler<2>().set_output("lamp2"); // LAMP3 (CADET MISSION) - outlatch.bit_handler<3>().set_output("lamp1"); // LAMP2 (TRAINING MISSION) - outlatch.bit_handler<4>().set_output("lamp0"); // START/SELECT LEDs - outlatch.bit_handler<5>().set_nop(); + MCFG_DEVICE_MODIFY("maincpu") + MCFG_DEVICE_PROGRAM_MAP(llander_map) + MCFG_DEVICE_PERIODIC_INT_DRIVER(asteroid_state, llander_interrupt, MASTER_CLOCK/4096/12) + + MCFG_SCREEN_MODIFY("screen") + MCFG_SCREEN_REFRESH_RATE(CLOCK_3KHZ/12/6) + MCFG_SCREEN_VISIBLE_AREA(522, 1566, 270, 1070) + MCFG_SCREEN_UPDATE_DEVICE("vector", vector_device, screen_update) + + MCFG_DEVICE_MODIFY("outlatch") // LS174 at N11 + MCFG_OUTPUT_LATCH_BIT0_HANDLER(OUTPUT("lamp4")) // LAMP5 (COMMAND MISSION) + MCFG_OUTPUT_LATCH_BIT1_HANDLER(OUTPUT("lamp3")) // LAMP4 (PRIME MISSION) + MCFG_OUTPUT_LATCH_BIT2_HANDLER(OUTPUT("lamp2")) // LAMP3 (CADET MISSION) + MCFG_OUTPUT_LATCH_BIT3_HANDLER(OUTPUT("lamp1")) // LAMP2 (TRAINING MISSION) + MCFG_OUTPUT_LATCH_BIT4_HANDLER(OUTPUT("lamp0")) // START/SELECT LEDs + MCFG_OUTPUT_LATCH_BIT5_HANDLER(NOOP) /* sound hardware */ llander_sound(config); -} +MACHINE_CONFIG_END |