Browse Source

+ use a virtual zero page address register for frame pointer register

Nikolay Nikolov 1 year ago
parent
commit
eb1c3a82ae
1 changed files with 2 additions and 2 deletions
  1. 2 2
      compiler/mos6502/cpubase.pas

+ 2 - 2
compiler/mos6502/cpubase.pas

@@ -202,8 +202,8 @@ unit cpubase;
       NR_STACK_POINTER_REG = NR_S;
       NR_STACK_POINTER_REG = NR_S;
       RS_STACK_POINTER_REG = RS_S;
       RS_STACK_POINTER_REG = RS_S;
       { Frame pointer register }
       { Frame pointer register }
-      RS_FRAME_POINTER_REG = RS_INVALID;
-      NR_FRAME_POINTER_REG = NR_INVALID;
+      RS_FRAME_POINTER_REG = RS_RZW187;
+      NR_FRAME_POINTER_REG = NR_RZW187;
       { Register for addressing absolute data in a position independant way,
       { Register for addressing absolute data in a position independant way,
         such as in PIC code. The exact meaning is ABI specific. For
         such as in PIC code. The exact meaning is ABI specific. For
         further information look at GCC source : PIC_OFFSET_TABLE_REGNUM
         further information look at GCC source : PIC_OFFSET_TABLE_REGNUM