--- np2/i386c/ia32/instructions/misc_inst.c 2004/01/23 14:33:27 1.3 +++ np2/i386c/ia32/instructions/misc_inst.c 2004/02/18 20:11:37 1.6 @@ -1,4 +1,4 @@ -/* $Id: misc_inst.c,v 1.3 2004/01/23 14:33:27 monaka Exp $ */ +/* $Id: misc_inst.c,v 1.6 2004/02/18 20:11:37 yui Exp $ */ /* * Copyright (c) 2002-2003 NONAKA Kimihiro @@ -45,8 +45,8 @@ LEA_GwM(void) if (op < 0xc0) { CPU_WORKCLOCK(3); out = reg16_b53[op]; - dst = calc_lea(op); - *out = dst; + dst = calc_ea_dst(op); + *out = (WORD)dst; return; } EXCEPTION(UD_EXCEPTION, 0); @@ -62,7 +62,7 @@ LEA_GdM(void) if (op < 0xc0) { CPU_WORKCLOCK(3); out = reg32_b53[op]; - dst = calc_lea(op); + dst = calc_ea_dst(op); *out = dst; return; } @@ -130,7 +130,7 @@ SALC(void) { CPU_WORKCLOCK(2); - CPU_AL = (CPU_FLAGL & C_FLAG) - 1; + CPU_AL = (CPU_FLAGL & C_FLAG) ? 0xff : 0; } /* undoc 286 */