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