summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/upd7810/upd7810.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/cpu/upd7810/upd7810.cpp')
-rw-r--r--src/devices/cpu/upd7810/upd7810.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/devices/cpu/upd7810/upd7810.cpp b/src/devices/cpu/upd7810/upd7810.cpp
index 54bc5e3757e..e88b33d91aa 100644
--- a/src/devices/cpu/upd7810/upd7810.cpp
+++ b/src/devices/cpu/upd7810/upd7810.cpp
@@ -2005,19 +2005,19 @@ void upd7801_device::execute_set_input(int irqline, int state)
/* Check if the ES bit is set then check for rising edge, otherwise falling edge */
if ( MKL & 0x20 )
{
- if ( m_int2 == CLEAR_LINE && state == ASSERT_LINE )
+ if ( m_int2 != CLEAR_LINE && state == ASSERT_LINE )
{
IRR |= INTF2;
}
}
else
{
- if ( m_int2 == ASSERT_LINE && state == CLEAR_LINE )
+ if ( m_int2 != ASSERT_LINE && state == CLEAR_LINE )
{
IRR |= INTF2;
}
}
- m_int2 = state;
+ m_int2 = !state;
break;
}
}