Browse Source

+ introduced NR_LOCAL_STACK_POINTER_REG

git-svn-id: branches/wasm@47776 -
nickysn 4 years ago
parent
commit
ce8439fb36
1 changed files with 2 additions and 0 deletions
  1. 2 0
      compiler/wasm32/cpubase.pas

+ 2 - 0
compiler/wasm32/cpubase.pas

@@ -143,6 +143,8 @@ uses
         can use the offset field to indicate the order, which is used by ncal
         can use the offset field to indicate the order, which is used by ncal
         to sort the parameters }
         to sort the parameters }
       NR_EVAL_STACK_BASE = NR_R0;
       NR_EVAL_STACK_BASE = NR_R0;
+      { used as base register in references to indicate that it's a local }
+      NR_LOCAL_STACK_POINTER_REG = NR_R1;
 
 
       maxvarregs = 1;
       maxvarregs = 1;
       maxfpuvarregs = 1;
       maxfpuvarregs = 1;