summaryrefslogtreecommitdiffstats
path: root/src/mame/drivers/sbrkout.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/sbrkout.cpp')
-rw-r--r--src/mame/drivers/sbrkout.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/mame/drivers/sbrkout.cpp b/src/mame/drivers/sbrkout.cpp
index 19fd78c9e7c..a4f68428d88 100644
--- a/src/mame/drivers/sbrkout.cpp
+++ b/src/mame/drivers/sbrkout.cpp
@@ -559,16 +559,16 @@ GFXDECODE_END
MACHINE_CONFIG_START(sbrkout_state::sbrkout)
/* basic machine hardware */
- MCFG_DEVICE_ADD("maincpu", M6502,MAIN_CLOCK/16) /* 375 KHz? Should be 750KHz? */
- MCFG_DEVICE_PROGRAM_MAP(main_map)
-
- MCFG_DEVICE_ADD("outlatch", F9334, 0) // H8
- MCFG_ADDRESSABLE_LATCH_Q1_OUT_CB(OUTPUT("led0")) MCFG_DEVCB_INVERT // SERV LED (active low)
- MCFG_ADDRESSABLE_LATCH_Q3_OUT_CB(OUTPUT("lamp0")) // LAMP1
- MCFG_ADDRESSABLE_LATCH_Q4_OUT_CB(OUTPUT("lamp1")) // LAMP2
- MCFG_ADDRESSABLE_LATCH_Q5_OUT_CB(WRITELINE(*this, sbrkout_state, pot_mask1_w))
- MCFG_ADDRESSABLE_LATCH_Q6_OUT_CB(WRITELINE(*this, sbrkout_state, pot_mask2_w))
- MCFG_ADDRESSABLE_LATCH_Q7_OUT_CB(WRITELINE(*this, sbrkout_state, coincount_w))
+ M6502(config, m_maincpu, MAIN_CLOCK/16); // 375 KHz? Should be 750KHz?
+ m_maincpu->set_addrmap(AS_PROGRAM, &sbrkout_state::main_map);
+
+ F9334(config, m_outlatch); // H8
+ m_outlatch->q_out_cb<1>().set_output("led0").invert(); // SERV LED (active low)
+ m_outlatch->q_out_cb<3>().set_output("lamp0"); // LAMP1
+ m_outlatch->q_out_cb<4>().set_output("lamp1"); // LAMP2
+ m_outlatch->q_out_cb<5>().set(FUNC(sbrkout_state::pot_mask1_w));
+ m_outlatch->q_out_cb<6>().set(FUNC(sbrkout_state::pot_mask2_w));
+ m_outlatch->q_out_cb<7>().set(FUNC(sbrkout_state::coincount_w));
// Note that connecting pin 15 to a pullup, as shown on the schematics, may result in spurious
// coin counter activity as stated in Atari bulletin B-0054 (which recommends tying it to the
// CPU reset line instead).
@@ -594,12 +594,12 @@ MACHINE_CONFIG_START(sbrkout_state::sbrkout)
MACHINE_CONFIG_END
-MACHINE_CONFIG_START(sbrkoutct_state::sbrkoutct)
+void sbrkoutct_state::sbrkoutct(machine_config &config)
+{
sbrkout(config);
- MCFG_DEVICE_MODIFY("outlatch")
- MCFG_ADDRESSABLE_LATCH_Q2_OUT_CB(OUTPUT("led1")) MCFG_DEVCB_INVERT // 2nd serve LED
-MACHINE_CONFIG_END
+ subdevice<f9334_device>("outlatch")->q_out_cb<2>().set_output("led1").invert(); // 2nd serve LED
+}
/*************************************
*