浏览代码

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

Nikolay Nikolov 1 年之前
父节点
当前提交
eb1c3a82ae
共有 1 个文件被更改,包括 2 次插入2 次删除
  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