summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/wink.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/wink.cpp')
-rw-r--r--src/mame/drivers/wink.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/mame/drivers/wink.cpp b/src/mame/drivers/wink.cpp
index 81820d350b9..04b849a6c4f 100644
--- a/src/mame/drivers/wink.cpp
+++ b/src/mame/drivers/wink.cpp
@@ -388,15 +388,15 @@ MACHINE_CONFIG_START(wink_state::wink)
MCFG_DEVICE_PROGRAM_MAP(wink_map)
MCFG_DEVICE_IO_MAP(wink_io)
- MCFG_DEVICE_ADD("mainlatch", LS259, 0)
- MCFG_ADDRESSABLE_LATCH_Q0_OUT_CB(WRITELINE(*this, wink_state, nmi_enable_w))
- MCFG_ADDRESSABLE_LATCH_Q1_OUT_CB(WRITELINE(*this, wink_state, player_mux_w)) //??? no mux on the pcb.
- MCFG_ADDRESSABLE_LATCH_Q2_OUT_CB(WRITELINE(*this, wink_state, tile_banking_w))
- MCFG_ADDRESSABLE_LATCH_Q3_OUT_CB(NOOP) //?
- MCFG_ADDRESSABLE_LATCH_Q4_OUT_CB(NOOP) //cab Knocker like in q-bert!
- MCFG_ADDRESSABLE_LATCH_Q5_OUT_CB(WRITELINE(*this, wink_state, coin_counter_w<0>))
- MCFG_ADDRESSABLE_LATCH_Q6_OUT_CB(WRITELINE(*this, wink_state, coin_counter_w<1>))
- MCFG_ADDRESSABLE_LATCH_Q7_OUT_CB(WRITELINE(*this, wink_state, coin_counter_w<2>))
+ ls259_device &mainlatch(LS259(config, "mainlatch"));
+ mainlatch.q_out_cb<0>().set(FUNC(wink_state::nmi_enable_w));
+ mainlatch.q_out_cb<1>().set(FUNC(wink_state::player_mux_w)); //??? no mux on the pcb.
+ mainlatch.q_out_cb<2>().set(FUNC(wink_state::tile_banking_w));
+ mainlatch.q_out_cb<3>().set_nop(); //?
+ mainlatch.q_out_cb<4>().set_nop(); //cab Knocker like in q-bert!
+ mainlatch.q_out_cb<5>().set(FUNC(wink_state::coin_counter_w<0>));
+ mainlatch.q_out_cb<6>().set(FUNC(wink_state::coin_counter_w<1>));
+ mainlatch.q_out_cb<7>().set(FUNC(wink_state::coin_counter_w<2>));
MCFG_DEVICE_ADD("audiocpu", Z80, 12000000 / 8)
MCFG_DEVICE_PROGRAM_MAP(wink_sound_map)