Explorar el Código

* 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 hace 11 años
padre
commit
1f8280e8f1
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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}