From: Robert [mailto:pac0446@bigpond.net.au]

Subject: A fix for the z80pio

Hi there,

Here is a one-line fix for the z80pio.

At the moment when the interrupt control word is sent (with interrupts
enabled), an interrupt occurs. In reality, interrupts are disabled until
the interrupt mask byte is sent.
This commit is contained in:
Aaron Giles 2008-02-28 05:48:21 +00:00
parent 061ea91358
commit 4741ad3a7e

View File

@ -109,7 +109,7 @@ static void update_irq_state(z80pio *pio, int ch)
int old_state = pio->int_state[ch];
int irq = 0;
int data;
if (pio->mode[ch] == 0x13) return;
if (pio->mode[ch] == 0x13 || (pio->enable[ch] & PIO_INT_MASK)) return;
/* only check if interrupts are enabled */
if (pio->enable[ch] & PIO_INT_ENABLE)