P-Code Instructions (pcode.hlp) (Table of Contents; Topic list)
Incf<t><n><m>
                                              Up Contents Index Back
──P-Code Instructions───────────────────────────────────────────────────────
 
  Syntax
 
  Incf<t><n><m>
 
  /* Increment frame variable by specified value */
 
  Possible Instructions
 
  IncfBbb, IncfBwb, IncfWbb, IncfWbw, IncfWwb, IncfWww, IncfLbb, IncfLbw,
  IncfLbl, IncfLwb, IncfLww, IncfLwl, IncfFbb, IncfFbw, IncfFwb, IncfHbb,
  IncfHbw, IncfHwb, IncfHww
 
  See: P-Code Data Types
       P-Code Operands
 
  Description
 
  Increment a frame variable by <m>, while the preincremented value is
  stored in the p-code temporary register t.
 
  Pseudocode equivalent:
 
  // when <n> is a byte <b>
 
  t = *(bp + (2 * (<b> | 0xff00));
  *(bp + (2 * (<b> | 0xff00)) += <m>;
 
  // when <n> is a word w
 
  t = *(bp + (2 * w));
  *(bp + (2 * w)) += <m>;
 
  Using the increment operator (+=) in C generates this instruction.
 
 
                                     -♦-