Basic30 Language Reference
Register Usage

Basic30 uses the registers in the following way

Register   Usage
WREG0 - WREG7  
  • Scratch registers
  • Passing parameters to a Sub or Function when the regParams keyword has been used
WREG8-WREG13  
  • Holding temporary values when processing an equation
WREG14  
  • Stack frame pointer
WREG15  
  • Stack pointer