Browse Source

* don't subtract two from the end of the stack segment when calculating the
initial SP value - seems to be wlink compatible

git-svn-id: trunk@31399 -

nickysn 10 years ago
parent
commit
0eb1cd157a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      compiler/ogomf.pas

+ 1 - 1
compiler/ogomf.pas

@@ -2227,7 +2227,7 @@ implementation
         if assigned(stackseg) then
           begin
             Header.InitialSS:=stackseg.MemBasePos shr 4;
-            Header.InitialSP:=stackseg.MemPos+stackseg.Size-stackseg.MemBasePos-2;
+            Header.InitialSP:=stackseg.MemPos+stackseg.Size-stackseg.MemBasePos;
           end
         else
           begin