瀏覽代碼

* generate 16-bit (instead of 32-bit) instructions for push/pop of a segment
register in an inline asm block on i8086

git-svn-id: trunk@30616 -

nickysn 10 年之前
父節點
當前提交
c3515f743f
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      compiler/x86/rax86.pas

+ 4 - 0
compiler/x86/rax86.pas

@@ -803,7 +803,11 @@ begin
             (opcode=A_POP)) and
            (operands[1].opr.typ=OPR_REGISTER) and
            is_segment_reg(operands[1].opr.reg) then
+{$ifdef i8086}
+          opsize:=S_W
+{$else i8086}
           opsize:=S_L
+{$endif i8086}
         else
           opsize:=tx86operand(operands[1]).opsize;
       end;