summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author cracyc <cracyc@users.noreply.github.com>2017-09-26 08:46:12 -0500
committer cracyc <cracyc@users.noreply.github.com>2017-09-26 08:46:12 -0500
commitf9705aa35d8055e78ceba54ba3d7c6fd412235b0 (patch)
treebb4826ff87d0efbd25948f5ae547378bd14241f1
parent4139b8fd7e05370d739bee8359b70bf6dec909e2 (diff)
i8089: fix sintr (nw)
-rw-r--r--src/devices/cpu/i8089/i8089_channel.cpp6
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;