From 2529e1432a239d3f345e148cbca7b27b49d0dc98 Mon Sep 17 00:00:00 2001 From: AJR Date: Fri, 19 Apr 2019 17:06:25 -0400 Subject: [PATCH] hd63450: Update IRQ output when enable bit changes (nw) --- src/devices/machine/hd63450.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/devices/machine/hd63450.cpp b/src/devices/machine/hd63450.cpp index 44343895fa9..85cf00bfa86 100644 --- a/src/devices/machine/hd63450.cpp +++ b/src/devices/machine/hd63450.cpp @@ -206,6 +206,10 @@ WRITE16_MEMBER(hd63450_device::write) dma_transfer_halt(channel); if (data & 0x0040) // continure operation dma_transfer_continue(channel); + if ((data & 0x0008) == 0) + clear_irq(channel); + else if ((m_reg[channel].csr & 0xf2) != 0) + set_irq(channel); LOG("DMA#%i: Channel Control write : %02x\n",channel,m_reg[channel].ccr); } break;