Sfoglia il codice sorgente

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

git-svn-id: branches/z80@44964 -
nickysn 5 anni fa
parent
commit
7bfce62302
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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;