mirror of
https://github.com/holub/mame
synced 2025-07-05 01:48:29 +03:00
pokey: Double-check to make sure timer IRQs are enabled before raising them
This commit is contained in:
parent
b7b114c525
commit
a3ea38c389
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user