--- np2/i386c/ia32/instructions/misc_inst.c 2004/02/18 20:11:37 1.6 +++ np2/i386c/ia32/instructions/misc_inst.c 2005/03/12 12:33:47 1.8 @@ -1,4 +1,4 @@ -/* $Id: misc_inst.c,v 1.6 2004/02/18 20:11:37 yui Exp $ */ +/* $Id: misc_inst.c,v 1.8 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 @@ -38,15 +36,15 @@ void LEA_GwM(void) { - WORD *out; - DWORD op, dst; + UINT16 *out; + UINT32 op, dst; GET_PCBYTE(op); if (op < 0xc0) { - CPU_WORKCLOCK(3); + CPU_WORKCLOCK(2); out = reg16_b53[op]; dst = calc_ea_dst(op); - *out = (WORD)dst; + *out = (UINT16)dst; return; } EXCEPTION(UD_EXCEPTION, 0); @@ -55,12 +53,12 @@ LEA_GwM(void) void LEA_GdM(void) { - DWORD *out; - DWORD op, dst; + UINT32 *out; + UINT32 op, dst; GET_PCBYTE(op); if (op < 0xc0) { - CPU_WORKCLOCK(3); + CPU_WORKCLOCK(2); out = reg32_b53[op]; dst = calc_ea_dst(op); *out = dst; @@ -166,7 +164,7 @@ AddrSize(void) void _2byte_ESC16(void) { - DWORD op; + UINT32 op; GET_PCBYTE(op); (*insttable_2byte[0][op])(); @@ -175,7 +173,7 @@ _2byte_ESC16(void) void _2byte_ESC32(void) { - DWORD op; + UINT32 op; GET_PCBYTE(op); (*insttable_2byte[1][op])();