X-Git-Url: http://j8takagi.net/cgi-bin/gitweb.cgi?p=YACASL2.git;a=blobdiff_plain;f=src%2Fexec.c;h=a757dfaa0bfb7161a547edd76b4d8518b446df32;hp=00cee8ddee097ed89b8e498d6695fcc25165125f;hb=51f7ad0eaf7349de95cfb2b68453017846d91846;hpb=04a3118439bbcea335da98764406256d10be78f5 diff --git a/src/exec.c b/src/exec.c index 00cee8d..a757dfa 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 & 0x7F); /* OFに、レジスタから最後に送り出されたビットの値を設定 */ if(last > 0x0) { FR += OF;