summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2023-10-02 22:29:35 -0400
committer AJR <ajrhacker@users.noreply.github.com>2023-10-02 22:29:35 -0400
commita3ea38c3892bad04a756b3cfd0ed3acd0a25487d (patch)
tree5b574660bf729efa606a2fda22bd126c42415cbd
parentb7b114c525bd0b66cfcd78ca89b2161a746a8858 (diff)
pokey: Double-check to make sure timer IRQs are enabled before raising them
-rw-r--r--src/devices/sound/pokey.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/devices/sound/pokey.cpp b/src/devices/sound/pokey.cpp
index 4940e355312..c0fcd9f87f6 100644
--- a/src/devices/sound/pokey.cpp
+++ b/src/devices/sound/pokey.cpp
@@ -433,9 +433,12 @@ TIMER_CALLBACK_MEMBER(pokey_device::sync_pot)
TIMER_CALLBACK_MEMBER(pokey_device::sync_set_irqst)
{
- LOG_IRQ("POKEY TIMR%d IRQ raised\n", param);
- m_IRQST |= (param & 0xff);
- m_irq_w_cb(ASSERT_LINE);
+ if (m_IRQEN & param)
+ {
+ LOG_IRQ("POKEY TIMR%d IRQ raised\n", param);
+ m_IRQST |= (param & 0xff);
+ m_irq_w_cb(ASSERT_LINE);
+ }
}
void pokey_device::execute_run()