瀏覽代碼

* fixes masm code generation for rep mov*

git-svn-id: trunk@32259 -
florian 9 年之前
父節點
當前提交
094a3c4350
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      compiler/x86/agx86int.pas

+ 5 - 0
compiler/x86/agx86int.pas

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