--- np2/i386c/ia32/instructions/ctrl_trans.c 2005/02/04 05:32:24 1.17 +++ np2/i386c/ia32/instructions/ctrl_trans.c 2005/03/03 06:59:41 1.19 @@ -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.19 2005/03/03 06:59:41 yui Exp $ */ /* * Copyright (c) 2002-2003 NONAKA Kimihiro @@ -34,6 +34,10 @@ #include "ctrl_trans.h" +#if defined(ENABLE_TRAP) +#include "inttrap.h" +#endif + /* * JMP @@ -1238,14 +1242,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; }