--- np2/i386c/ia32/instructions/ctrl_trans.c 2005/02/04 05:32:24 1.17 +++ np2/i386c/ia32/instructions/ctrl_trans.c 2005/03/12 12:33:47 1.20 @@ -1,4 +1,4 @@ -/* $Id: ctrl_trans.c,v 1.17 2005/02/04 05:32:24 yui Exp $ */ +/* $Id: ctrl_trans.c,v 1.20 2005/03/12 12:33:47 monaka Exp $ */ /* * Copyright (c) 2002-2003 NONAKA Kimihiro @@ -12,8 +12,6 @@ * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES @@ -34,6 +32,10 @@ #include "ctrl_trans.h" +#if defined(ENABLE_TRAP) +#include "inttrap.h" +#endif + /* * JMP @@ -1238,14 +1240,9 @@ INT_Ib(void) CPU_WORKCLOCK(37); if (!CPU_STAT_PM || !CPU_STAT_VM86 || (CPU_STAT_IOPL == CPU_IOPL3)) { GET_PCBYTE(vect); -if (vect == 0x50) { - if (CPU_AH == 0) { - TRACEOUT(("INT50 AX=%.4x %.4x:%.4x", CPU_AX, CPU_ES, CPU_DI)); - } - else if ((CPU_AH != 0x09) && (CPU_AH != 0x0b) && (CPU_AH != 0x11) && (CPU_AH != 0x14)) { - TRACEOUT(("INT50 AX=%.4x", CPU_AX)); - } -} +#if defined(ENABLE_TRAP) + softinttrap(CPU_CS, CPU_EIP - 2, vect); +#endif INTERRUPT(vect, -1, 0, 0); return; }