diff options
Diffstat (limited to 'src/mame/drivers/tsamurai.cpp')
-rw-r--r-- | src/mame/drivers/tsamurai.cpp | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/src/mame/drivers/tsamurai.cpp b/src/mame/drivers/tsamurai.cpp index 96fedf0651e..9caeb6e83e8 100644 --- a/src/mame/drivers/tsamurai.cpp +++ b/src/mame/drivers/tsamurai.cpp @@ -732,12 +732,12 @@ MACHINE_CONFIG_START(tsamurai_state::tsamurai) MCFG_MACHINE_START_OVERRIDE(tsamurai_state,tsamurai) - MCFG_DEVICE_ADD("mainlatch", LS259, 0) - MCFG_ADDRESSABLE_LATCH_Q0_OUT_CB(WRITELINE(*this, tsamurai_state, flip_screen_w)) - MCFG_ADDRESSABLE_LATCH_Q1_OUT_CB(WRITELINE(*this, tsamurai_state, nmi_enable_w)) - MCFG_ADDRESSABLE_LATCH_Q2_OUT_CB(WRITELINE(*this, tsamurai_state, textbank1_w)) - MCFG_ADDRESSABLE_LATCH_Q3_OUT_CB(WRITELINE(*this, tsamurai_state, coin1_counter_w)) - MCFG_ADDRESSABLE_LATCH_Q4_OUT_CB(WRITELINE(*this, tsamurai_state, coin2_counter_w)) + ls259_device &mainlatch(LS259(config, "mainlatch")); + mainlatch.q_out_cb<0>().set(FUNC(tsamurai_state::flip_screen_w)); + mainlatch.q_out_cb<1>().set(FUNC(tsamurai_state::nmi_enable_w)); + mainlatch.q_out_cb<2>().set(FUNC(tsamurai_state::textbank1_w)); + mainlatch.q_out_cb<3>().set(FUNC(tsamurai_state::coin1_counter_w)); + mainlatch.q_out_cb<4>().set(FUNC(tsamurai_state::coin2_counter_w)); /* video hardware */ MCFG_SCREEN_ADD("screen", RASTER) @@ -780,12 +780,12 @@ MACHINE_CONFIG_START(tsamurai_state::vsgongf) MCFG_MACHINE_START_OVERRIDE(tsamurai_state,vsgongf) - MCFG_DEVICE_ADD("mainlatch", LS259, 0) // 4L - MCFG_ADDRESSABLE_LATCH_Q0_OUT_CB(NOOP) // vreg? always 0 - MCFG_ADDRESSABLE_LATCH_Q1_OUT_CB(WRITELINE(*this, tsamurai_state, nmi_enable_w)) - MCFG_ADDRESSABLE_LATCH_Q2_OUT_CB(WRITELINE(*this, tsamurai_state, coin1_counter_w)) - MCFG_ADDRESSABLE_LATCH_Q3_OUT_CB(WRITELINE(*this, tsamurai_state, coin2_counter_w)) - MCFG_ADDRESSABLE_LATCH_Q4_OUT_CB(WRITELINE(*this, tsamurai_state, textbank1_w)) + ls259_device &mainlatch(LS259(config, "mainlatch")); // 4L + mainlatch.q_out_cb<0>().set_nop(); // vreg? always 0 + mainlatch.q_out_cb<1>().set(FUNC(tsamurai_state::nmi_enable_w)); + mainlatch.q_out_cb<2>().set(FUNC(tsamurai_state::coin1_counter_w)); + mainlatch.q_out_cb<3>().set(FUNC(tsamurai_state::coin2_counter_w)); + mainlatch.q_out_cb<4>().set(FUNC(tsamurai_state::textbank1_w)); /* video hardware */ MCFG_SCREEN_ADD("screen", RASTER) @@ -834,13 +834,13 @@ MACHINE_CONFIG_START(tsamurai_state::m660) MCFG_MACHINE_START_OVERRIDE(tsamurai_state,m660) - MCFG_DEVICE_ADD("mainlatch", LS259, 0) - MCFG_ADDRESSABLE_LATCH_Q0_OUT_CB(WRITELINE(*this, tsamurai_state, flip_screen_w)) - MCFG_ADDRESSABLE_LATCH_Q1_OUT_CB(WRITELINE(*this, tsamurai_state, nmi_enable_w)) - MCFG_ADDRESSABLE_LATCH_Q2_OUT_CB(WRITELINE(*this, tsamurai_state, textbank1_w)) - MCFG_ADDRESSABLE_LATCH_Q3_OUT_CB(WRITELINE(*this, tsamurai_state, coin1_counter_w)) - MCFG_ADDRESSABLE_LATCH_Q4_OUT_CB(WRITELINE(*this, tsamurai_state, coin2_counter_w)) - MCFG_ADDRESSABLE_LATCH_Q7_OUT_CB(WRITELINE(*this, tsamurai_state, textbank2_w)) + ls259_device &mainlatch(LS259(config, "mainlatch")); + mainlatch.q_out_cb<0>().set(FUNC(tsamurai_state::flip_screen_w)); + mainlatch.q_out_cb<1>().set(FUNC(tsamurai_state::nmi_enable_w)); + mainlatch.q_out_cb<2>().set(FUNC(tsamurai_state::textbank1_w)); + mainlatch.q_out_cb<3>().set(FUNC(tsamurai_state::coin1_counter_w)); + mainlatch.q_out_cb<4>().set(FUNC(tsamurai_state::coin2_counter_w)); + mainlatch.q_out_cb<7>().set(FUNC(tsamurai_state::textbank2_w)); /* video hardware */ screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_RASTER)); |