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.
Rem<t>
                                              Up Contents Index Back
──P-Code Instructions───────────────────────────────────────────────────────
 
  Syntax
 
  Rem<t>
 
  /* Remainder of integer division of type <t>. */
 
  Possible Instructions
 
  RemB, RemW, RemL, RemuW, RemuL
 
  See: P-Code Data Types
 
  Description
 
  Performs integer division on the top two elements and pushes the
  remainder onto the stack.
 
  Pseudocode equivalent:
 
  t2 = Pop<t>();
  t1 = Pop<t>();
  Push<t>(t1 % t2);
 
  This is generated, for instance, in a multiple-variable declaration:
 
  wt1 = wt2 % wt3;         /* generates RemW */
 
 
                                     -♦-