diff options
author | 2017-09-26 08:46:12 -0500 | |
---|---|---|
committer | 2017-09-26 08:46:12 -0500 | |
commit | f9705aa35d8055e78ceba54ba3d7c6fd412235b0 (patch) | |
tree | bb4826ff87d0efbd25948f5ae547378bd14241f1 | |
parent | 4139b8fd7e05370d739bee8359b70bf6dec909e2 (diff) |
i8089: fix sintr (nw)
-rw-r--r-- | src/devices/cpu/i8089/i8089_channel.cpp | 6 |
1 files 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; |