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.
Rep<t>
                                              Up Contents Index Back
──P-Code Instructions───────────────────────────────────────────────────────
 
  Syntax
 
  Rep<t>
 
  /* Replicate top item on the stack */
 
  Possible Instructions
 
  RepL, RepW, RepT
 
  See: P-Code Data Types
 
  Description
 
  Repeats the latest operand by pushing a copy of the current top-of-stack
  element onto the stack.
 
  Pseudocode equivalent:
 
  Push<t>(Top<t>());
 
  This is produced, for instance, in a multiple variable declaration:
 
  Pseudocode equivalent:
 
  wt1 = wt2 = wt3 = 0;          /* generates RepW */
 
 
                                     -♦-