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.
Add<t>
                                              Up Contents Index Back
──P-Code Instructions───────────────────────────────────────────────────────
 
  Syntax
 
  Add<t>
 
  /* Add top two items on stack */
 
  Possible Instructions
 
  AddW, AddL, AddT
 
  See: P-Code Data Types
 
  Description
 
  Adds the top two elements from the stack and pushes the result onto the
  stack. The length of the elements is determined by the <t> portion of
  the instruction.
 
  Pseudocode equivalent:
 
  <t>2 = Pop<t>();
  <t>1 = Pop<t>();
  Push<t>(<t>1 + <t>2);
 
 
                                     -♦-