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.
Inc<t><n>
                                              Up Contents Index Back
──P-Code Instructions───────────────────────────────────────────────────────
 
  Syntax
 
  Inc<t><n>
 
  /* Increment top element on stack */
 
  Possible Instructions
 
  IncW1...IncW4, IncW6, IncW8, IncW10, IncW12, IncW14, IncW16, IncWb
 
  See: P-Code Data Types
       P-Code Operands
 
  Description
 
  Increment the top element of type <t> on the stack by <n>. If <n> is not
  specified, the increment is 1.
 
  Pseudocode equivalent:
 
  <t> = Pop<t>();
  Push<t>(<t> + <n>);
 
  For example:
 
  int w1, w2;
  w1 = w2 + 2;        /* generates IncW2 */
 
 
                                     -♦-