瀏覽代碼

* fixed cmp
* correct sign extension for 8 byte constants

git-svn-id: trunk@3063 -

florian 19 年之前
父節點
當前提交
e1147755df
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      compiler/x86/aasmcpu.pas
  2. 1 1
      compiler/x86/x86ins.dat

+ 1 - 1
compiler/x86/aasmcpu.pas

@@ -1942,7 +1942,7 @@ implementation
                 end;
                 end;
               top_const :
               top_const :
                 begin
                 begin
-                  currval:=longint(oper[opidx]^.val);
+                  currval:=aint(oper[opidx]^.val);
                   currsym:=nil;
                   currsym:=nil;
                 end;
                 end;
               else
               else

+ 1 - 1
compiler/x86/x86ins.dat

@@ -165,7 +165,7 @@ reg16|32|64,regmem    \320\301\1\x3B\110              8086,SM
 rm8,reg8              \300\1\x38\101                  8086
 rm8,reg8              \300\1\x38\101                  8086
 reg8,rm8              \301\1\x3A\110                  8086
 reg8,rm8              \301\1\x3A\110                  8086
 rm16|32|64,imm8       \320\300\1\x83\207\15           8086
 rm16|32|64,imm8       \320\300\1\x83\207\15           8086
-reg_eax|64,imm        \325\1\x3D\41                   386,SD
+reg_eax|64,imm        \320\1\x3D\41                   386,SD
 rm32|64,imm           \320\300\1\x81\207\41           386,SD
 rm32|64,imm           \320\300\1\x81\207\41           386,SD
 reg_ax,imm            \324\1\x3D\31                   8086,SW
 reg_ax,imm            \324\1\x3D\31                   8086,SW
 rm16,imm              \324\300\1\x81\207\31           8086,SW
 rm16,imm              \324\300\1\x81\207\31           8086,SW