mirror of
https://github.com/holub/mame
synced 2025-07-01 08:18:59 +03:00
i8089: fix sintr (nw)
This commit is contained in:
parent
4139b8fd7e
commit
f9705aa35d
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user