i8089: fix sintr (nw)

This commit is contained in:
cracyc 2017-09-26 08:46:12 -05:00
parent 4139b8fd7e
commit f9705aa35d

View File

@ -685,16 +685,16 @@ void i8089_channel_device::examine_ccw(uint8_t ccw)
m_r[PSW].w = (m_r[PSW].w & 0x5f) | (ccw & 0xa0); m_r[PSW].w = (m_r[PSW].w & 0x5f) | (ccw & 0xa0);
// acknowledge interrupt // acknowledge interrupt
if (BIT(ccw, 4)) if (BIT(ccw, 3))
{ {
m_write_sintr(0); m_write_sintr(0);
m_r[PSW].w &= ~(1 << 5); m_r[PSW].w &= ~(1 << 5);
} }
// interrupt enable // interrupt enable
if (BIT(ccw, 5)) if (BIT(ccw, 4))
{ {
if (BIT(ccw, 4)) if (BIT(ccw, 3))
m_r[PSW].w &= ~(1 << 4); m_r[PSW].w &= ~(1 << 4);
else else
m_r[PSW].w |= 1 << 4; m_r[PSW].w |= 1 << 4;