瀏覽代碼

* tcg8086.g_flags2reg: restore the register back to the original size after the
16-bit inc

git-svn-id: trunk@26337 -

nickysn 11 年之前
父節點
當前提交
bda163544a
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      compiler/i8086/cgcpu.pas

+ 1 - 0
compiler/i8086/cgcpu.pas

@@ -1371,6 +1371,7 @@ unit cgcpu;
         { 16-bit INC is shorter than 8-bit }
         hreg16:=makeregsize(list,reg,OS_16);
         list.concat(Taicpu.op_reg(A_INC, S_W, hreg16));
+        makeregsize(list,hreg16,tmpsize);
 
         a_label(list,hl_skip);