P-Code Instructions (pcode.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
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> */
 
 
                                     -♦-