summaryrefslogtreecommitdiffstats
path: root/src/mame/drivers/decwritr.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/decwritr.cpp')
-rw-r--r--src/mame/drivers/decwritr.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/mame/drivers/decwritr.cpp b/src/mame/drivers/decwritr.cpp
index 8290ac08105..34753234ef9 100644
--- a/src/mame/drivers/decwritr.cpp
+++ b/src/mame/drivers/decwritr.cpp
@@ -429,15 +429,15 @@ MACHINE_CONFIG_START(decwriter_state::la120)
//MCFG_DC305_OUT_TXC_CB(WRITELINE("usart", i8251_device, write_txc))
//MCFG_DC305_OUT_INT_CB(WRITELINE("mainint", input_merger_device, in_w<0>))
- MCFG_DEVICE_ADD("ledlatch", LS259, 0) // E2 on keyboard
- MCFG_ADDRESSABLE_LATCH_Q0_OUT_CB(OUTPUT("led1")) MCFG_DEVCB_INVERT // ON LINE
- MCFG_ADDRESSABLE_LATCH_Q1_OUT_CB(OUTPUT("led2")) MCFG_DEVCB_INVERT // LOCAL
- MCFG_ADDRESSABLE_LATCH_Q2_OUT_CB(OUTPUT("led3")) MCFG_DEVCB_INVERT // ALT CHAR SET
- MCFG_ADDRESSABLE_LATCH_Q3_OUT_CB(OUTPUT("led4")) MCFG_DEVCB_INVERT
- MCFG_ADDRESSABLE_LATCH_Q4_OUT_CB(OUTPUT("led5")) MCFG_DEVCB_INVERT // CTS
- MCFG_ADDRESSABLE_LATCH_Q5_OUT_CB(OUTPUT("led6")) MCFG_DEVCB_INVERT // DSR
- MCFG_ADDRESSABLE_LATCH_Q6_OUT_CB(OUTPUT("led7")) MCFG_DEVCB_INVERT // SETUP
- MCFG_ADDRESSABLE_LATCH_Q7_OUT_CB(OUTPUT("led8")) MCFG_DEVCB_INVERT // PAPER OUT
+ LS259(config, m_ledlatch); // E2 on keyboard
+ m_ledlatch->q_out_cb<0>().set_output("led1").invert(); // ON LINE
+ m_ledlatch->q_out_cb<1>().set_output("led2").invert(); // LOCAL
+ m_ledlatch->q_out_cb<2>().set_output("led3").invert(); // ALT CHAR SET
+ m_ledlatch->q_out_cb<3>().set_output("led4").invert();
+ m_ledlatch->q_out_cb<4>().set_output("led5").invert(); // CTS
+ m_ledlatch->q_out_cb<5>().set_output("led6").invert(); // DSR
+ m_ledlatch->q_out_cb<6>().set_output("led7").invert(); // SETUP
+ m_ledlatch->q_out_cb<7>().set_output("led8").invert(); // PAPER OUT
//MCFG_DEFAULT_LAYOUT( layout_la120 )