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.
Sub<t>
                                              Up Contents Index Back
──P-Code Instructions───────────────────────────────────────────────────────
 
  Syntax
 
  Sub<t>
 
  /* Subtract top two items on stack */
 
  Possible Instructions
 
  SubW, SubL, SubT
 
  See: P-Code Data Types
       P-Code Operands
 
  Description
 
  Pops the top two elements off the stack, subtracts the second from the
  first, and pushes the result back onto the stack.
 
  Pseudocode equivalent:
 
  <t>1 = Pop<t>();
  <t>2 = Pop<t>();
  Push<t>(<t>1 - <t>2);
 
 
                                     -♦-