summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/video
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2018-06-08 10:21:02 -0400
committer AJR <ajrhacker@users.noreply.github.com>2018-06-08 10:21:16 -0400
commita279ee3773b8f5ea6c98e944089dac8424b124b2 (patch)
tree21b929b33aff362b2dbaaacd457a0de5b4af3b78 /src/devices/video
parent1b8d0decb57fff41f12770756e88a561a6d8a377 (diff)
wicat: Reduce video glitchiness with more sensible interrupt handling
Diffstat (limited to 'src/devices/video')
-rw-r--r--src/devices/video/i8275.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/devices/video/i8275.cpp b/src/devices/video/i8275.cpp
index 8a67bc4eaab..900e4194214 100644
--- a/src/devices/video/i8275.cpp
+++ b/src/devices/video/i8275.cpp
@@ -313,7 +313,7 @@ void i8275_device::device_timer(emu_timer &timer, device_timer_id id, int param,
}
}
- if ((m_status & ST_IE) && m_scanline == m_irq_scanline)
+ if ((m_status & ST_IE) && !(m_status & ST_IR) && m_scanline == m_irq_scanline)
{
//LOG("I8275 y %u x %u IRQ 1\n", y, x);
m_status |= ST_IR;
@@ -557,7 +557,7 @@ WRITE8_MEMBER( i8275_device::write )
case CMD_RESET:
LOG("I8275 Reset\n");
- m_status &= ~(ST_IE | ST_VE);
+ m_status &= ~(ST_IE | ST_IR | ST_VE);
LOG("I8275 IRQ 0\n");
m_write_irq(CLEAR_LINE);
m_write_drq(0);