X-Git-Url: http://j8takagi.net/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fexec.c;h=ad5755127ec994f0d9efce2139d32c41fd4768e3;hb=eeed4083a8e5b52c3f6618bc78b64d991979a2c4;hp=00cee8ddee097ed89b8e498d6695fcc25165125f;hpb=ed3225328d7bc0d718fc97dd0b05692b7287667b;p=YACASL2.git 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;