Explorar o código

* fixed stack direction in assignintreg. This fixes problems with the parameter location calculation.

git-svn-id: branches/z80@44964 -
nickysn %!s(int64=5) %!d(string=hai) anos
pai
achega
7bfce62302
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      compiler/z80/cpupara.pas

+ 1 - 1
compiler/z80/cpupara.pas

@@ -221,7 +221,7 @@ unit cpupara;
                paraloc^.loc:=LOC_REFERENCE;
                paraloc^.reference.index:=NR_STACK_POINTER_REG;
                paraloc^.reference.offset:=stack_offset;
-               dec(stack_offset,2);
+               inc(stack_offset,2);
             end;
         end;