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.
Shl<t>1
                                              Up Contents Index Back
──P-Code Instructions───────────────────────────────────────────────────────
 
  Syntax
 
  Shl<t>1
 
  /* Shift Word Logical Left one bit */
 
  Possible Instructions
 
  ShlW1, ShlL1
 
  See: P-Code Data Types
 
  Description
 
  Performs a left shift by one. It pops the top stack element off of the
  stack, shifts it left by one, and pushes the new value back onto the
  stack.
 
  Pseudocode equivalent:
 
  Push<t>(Pop<t>() << 1);
 
  Simply perform a left shift by one on a variable to generate this
  instruction:
 
  wTest1 <<= 1;            /* generates ShlW1 */
 
 
                                     -♦-