Explorar o código

* 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 %!s(int64=10) %!d(string=hai) anos
pai
achega
c3515f743f
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  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;