Quellcode durchsuchen

* in the inline asm reader, treat [var] reference as "word" instead of "dword"
when "var" is of dword size. This fixes spurious generation of a $66 prefix
and makes the code consistent with what Tx86Operand.SetSize does (and what is
then used for checking the operand sizes of all operands of the instruction in
Tx86Instruction.CheckOperandSizes).

git-svn-id: trunk@30629 -

nickysn vor 10 Jahren
Ursprung
Commit
5c8965fea5
1 geänderte Dateien mit 7 neuen und 1 gelöschten Zeilen
  1. 7 1
      compiler/x86/rax86.pas

+ 7 - 1
compiler/x86/rax86.pas

@@ -1180,7 +1180,13 @@ begin
                      asize:=OT_BITS8;
                    OS_16,OS_S16, OS_M16:
                      asize:=OT_BITS16;
-                   OS_32,OS_S32,OS_F32,OS_M32 :
+                   OS_32,OS_S32 :
+{$ifdef i8086}
+                     asize:=OT_BITS16;
+{$else i8086}
+                     asize:=OT_BITS32;
+{$endif i8086}
+                   OS_F32,OS_M32 :
                      asize:=OT_BITS32;
                    OS_64,OS_S64:
                      begin