Add comment

This commit is contained in:
gm-matthew 2022-11-25 22:44:22 +00:00 committed by trzy
parent 916d3d3af1
commit 6a392f2cc9

View file

@ -2070,6 +2070,8 @@ void CModel3::RunMainBoardFrame(void)
IRQ.Assert(0x02); // start at 33% of the frame IRQ.Assert(0x02); // start at 33% of the frame
// keep running cycles until IRQ2 is acknowledged // keep running cycles until IRQ2 is acknowledged
// Ski Champ can hang if we check the MIDI control port too early
// and miss MIDI interrupts pending before the next IRQ2
while (IRQ.ReadIRQEnable() & 0x2 && IRQ.ReadIRQState() & 0x2 && dispCycles > 1000) while (IRQ.ReadIRQEnable() & 0x2 && IRQ.ReadIRQState() & 0x2 && dispCycles > 1000)
{ {
ppc_execute(1000); ppc_execute(1000);