Browse Source

* load the destination segment in tcg8086.g_copyvaluepara_openarray from SS
instead of DS, because the destination is on the stack, but in some memory
models DS may be different than SS

git-svn-id: trunk@27391 -

nickysn 11 years ago
parent
commit
1f8280e8f1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      compiler/i8086/cgcpu.pas

+ 1 - 1
compiler/i8086/cgcpu.pas

@@ -1861,7 +1861,7 @@ unit cgcpu;
         list.concat(Taicpu.Op_reg_reg(A_MOV,S_W,NR_SP,NR_DI));
 
 {$ifdef volatile_es}
-        list.concat(taicpu.op_reg(A_PUSH,S_W,NR_DS));
+        list.concat(taicpu.op_reg(A_PUSH,S_W,NR_SS));
         list.concat(taicpu.op_reg(A_POP,S_W,NR_ES));
 {$endif volatile_es}