mirror of
https://github.com/holub/mame
synced 2025-04-21 16:01:56 +03:00
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:
parent
061ea91358
commit
4741ad3a7e
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user