When disabling sound IRQs via MIDI control port, clear current IRQ

Prevents Dirt Devils hanging during boot
This commit is contained in:
gm-matthew 2024-05-22 22:31:02 +01:00 committed by Bart Trzynadlowski
parent 976f0208dc
commit 7d32bde074

View file

@ -1424,7 +1424,11 @@ void CModel3::Write8(UINT32 addr, UINT8 data)
IRQ.Deassert(0x40);
}
else if ((addr & 0xF) == 4) // MIDI control port
{
midiCtrlPort = data;
if ((data & 0x20) == 0)
IRQ.Deassert(0x40);
}
break;
// Backup RAM