--- np2/io/pic.c 2003/10/16 17:57:56 1.1.1.1 +++ np2/io/pic.c 2003/11/12 00:55:38 1.3 @@ -1,6 +1,5 @@ #include "compiler.h" #include "i286.h" -#include "memory.h" #include "pccore.h" #include "iocore.h" @@ -133,6 +132,7 @@ void pic_irq(void) { else { pry = (char)p->pi[0].pry[p->pi[0].level[p->pi[0].levels - 1]]; } + irq = 0xff; targetbit = 0; for (bit=1, i=0; bit; bit<<=1, i++) { if ((p->pi[0].irr & bit) && @@ -291,6 +291,7 @@ static void IOOUTCALL pic_o00(UINT port, PICITEM picp; BYTE level; +// TRACEOUT(("pic %x %x", port, dat)); picp = &pic.pi[(port >> 3) & 1]; picp->writeicw = 0; switch(dat & 0x18) { @@ -340,6 +341,7 @@ static void IOOUTCALL pic_o02(UINT port, PICITEM picp; +// TRACEOUT(("pic %x %x", port, dat)); picp = &pic.pi[(port >> 3) & 1]; if (!picp->writeicw) { picp->imr = dat;