Browse Source

* fixes masm code generation for rep mov*

git-svn-id: trunk@32259 -
florian 9 years ago
parent
commit
094a3c4350
1 changed files with 5 additions and 0 deletions
  1. 5 0
      compiler/x86/agx86int.pas

+ 5 - 0
compiler/x86/agx86int.pas

@@ -747,6 +747,11 @@ implementation
                   repeat
                   repeat
                     hp:=tai(hp.next);
                     hp:=tai(hp.next);
                   until (hp=nil) or (hp.typ=ait_instruction);
                   until (hp=nil) or (hp.typ=ait_instruction);
+
+                  { next instruction ... }
+                  fixed_opcode:=taicpu(hp).FixNonCommutativeOpcodes;
+                  taicpu(hp).SetOperandOrder(op_intel);
+
                   { this is theorically impossible... }
                   { this is theorically impossible... }
                   if hp=nil then
                   if hp=nil then
                    begin
                    begin