From 963a2c166d080e78e6de7fe432ed7944c59a6083 Mon Sep 17 00:00:00 2001 From: Patrick Mackinlay Date: Fri, 8 May 2020 14:26:19 +0700 Subject: [PATCH] z80scc: clear IUS not IP (nw) --- src/devices/machine/z80scc.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/devices/machine/z80scc.cpp b/src/devices/machine/z80scc.cpp index e60c52d3baf..0259fb5d0b0 100644 --- a/src/devices/machine/z80scc.cpp +++ b/src/devices/machine/z80scc.cpp @@ -1840,8 +1840,8 @@ void z80scc_channel::do_sccreg_wr0(uint8_t data) // loop over all interrupt sources for (auto & elem : m_uart->m_int_state) { - // find the first channel with an interrupt requested - if (elem & Z80_DAISY_INT) + // find the first interrupt under service + if (elem & Z80_DAISY_IEO) { LOGCMD("- %c found IUS bit to clear\n", 'A' + m_index); elem = 0; // Clear IUS bit (called IEO in z80 daisy lingo)