P-Code Instructions (pcode.hlp) (Table of Contents; Topic list)
Stf<t><n>
                                              Up Contents Index Back
──P-Code Instructions───────────────────────────────────────────────────────
 
  Syntax
 
  Stf<t><n>
 
  /* Store value to frame relative address */
 
  Possible Instructions
 
  StfBb, StfBw,  StfW0...StfW13, StfWb, StfWw, StfLb, StfLw, StfRw, StfDw,
  StfTw
 
  See: P-Code Data Types
       P-Code Operands
 
  Description
 
  Transfers the value on the stack to the specified frame variable and
  pops the value off of the stack.
 
  Pseudocode equivalent:
 
  // when <n> is a implied number #
 
  *(bp - fs - (2 *  #)) = Pop<t>();
 
  // when <n> is a byte <b>
 
  *(bp + (2 * (<b> | 0xff00))) = Pop<t>();
 
  // when <n> is a word w
 
  *(bp + (2 * w)) = Pop<t>();
 
  Assigning a value to any frame variable will produce this instruction:
 
  w1 = 25;            /* generates STF<n> */
 
 
                                     -♦-