From 84c1252ab960152f74ceac51c471e62297e0bc87 Mon Sep 17 00:00:00 2001 From: Jeff Muizelaar Date: Sun, 1 Aug 2021 20:35:38 -0400 Subject: lwriter.cpp: Invert the state of the SCC interrupt (#8389) --- src/mame/drivers/lwriter.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mame/drivers/lwriter.cpp b/src/mame/drivers/lwriter.cpp index f6839e095a7..63b6ccf5df9 100644 --- a/src/mame/drivers/lwriter.cpp +++ b/src/mame/drivers/lwriter.cpp @@ -535,7 +535,9 @@ void lwriter_state::lwriter(machine_config &config) m_scc->out_dtrb_callback().set(FUNC(lwriter_state::write_dtr)); m_scc->out_rtsb_callback().set("rs232b", FUNC(rs232_port_device::write_rts)); /* Interrupt */ - m_scc->out_int_callback().set(m_via, FUNC(via6522_device::write_ca1)); + // The "CA1 Latch/Interrupt Control" bit in VIA PCR gets set to "negative + // active edge" so we invert the SCC interrupt. + m_scc->out_int_callback().set(m_via, FUNC(via6522_device::write_ca1)).invert(); //m_scc->out_int_callback().set(FUNC(lwriter_state::scc_int)); rs232_port_device &rs232a(RS232_PORT(config, "rs232a", default_rs232_devices, "terminal")); -- cgit v1.2.3