summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/z80dma.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/machine/z80dma.cpp')
-rw-r--r--src/devices/machine/z80dma.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/devices/machine/z80dma.cpp b/src/devices/machine/z80dma.cpp
index 1a347cc2f24..68396ed7177 100644
--- a/src/devices/machine/z80dma.cpp
+++ b/src/devices/machine/z80dma.cpp
@@ -334,7 +334,12 @@ int z80dma_device::is_ready()
void z80dma_device::interrupt_check()
{
m_out_int_cb(m_ip ? ASSERT_LINE : CLEAR_LINE);
- m_out_ieo_cb(m_iei && !m_ip);
+
+ int ieo = m_iei;
+ if (m_ip) {
+ ieo = 0;
+ }
+ m_out_ieo_cb(ieo);
}