From f9705aa35d8055e78ceba54ba3d7c6fd412235b0 Mon Sep 17 00:00:00 2001 From: cracyc Date: Tue, 26 Sep 2017 08:46:12 -0500 Subject: i8089: fix sintr (nw) --- src/devices/cpu/i8089/i8089_channel.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/devices/cpu/i8089/i8089_channel.cpp b/src/devices/cpu/i8089/i8089_channel.cpp index 5bdda27b54e..aaae170de3a 100644 --- a/src/devices/cpu/i8089/i8089_channel.cpp +++ b/src/devices/cpu/i8089/i8089_channel.cpp @@ -685,16 +685,16 @@ void i8089_channel_device::examine_ccw(uint8_t ccw) m_r[PSW].w = (m_r[PSW].w & 0x5f) | (ccw & 0xa0); // acknowledge interrupt - if (BIT(ccw, 4)) + if (BIT(ccw, 3)) { m_write_sintr(0); m_r[PSW].w &= ~(1 << 5); } // interrupt enable - if (BIT(ccw, 5)) + if (BIT(ccw, 4)) { - if (BIT(ccw, 4)) + if (BIT(ccw, 3)) m_r[PSW].w &= ~(1 << 4); else m_r[PSW].w |= 1 << 4; -- cgit v1.2.3