X-Git-Url: http://j8takagi.net/cgi-bin/gitweb.cgi?p=YACASL2.git;a=blobdiff_plain;f=src%2Fexec.c;h=ad5755127ec994f0d9efce2139d32c41fd4768e3;hp=00cee8ddee097ed89b8e498d6695fcc25165125f;hb=0a27146563f27f432b89f1f91da94b80fff03162;hpb=04a3118439bbcea335da98764406256d10be78f5 diff --git a/src/exec.c b/src/exec.c index 00cee8d..ad57551 100644 --- a/src/exec.c +++ b/src/exec.c @@ -149,7 +149,7 @@ WORD sla(WORD val0, WORD val1) last = res & 0x4000; res <<= 1; } - res = sign | res; + res = sign | (res & 0x7FFF); /* OFに、レジスタから最後に送り出されたビットの値を設定 */ if(last > 0x0) { FR += OF;