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>
                                              Up Contents Index Back
──P-Code Instructions───────────────────────────────────────────────────────
 
  Syntax
 
  Shl<t>
 
  /* Shift Word/Long Logical Left by n bits */
 
  Possible Instructions
 
  ShlW, ShlL
 
  See: P-Code Data Types
 
  Description
 
  Performs a left shift, popping two elements off of the stack and pushing
  the result onto the stack.
 
  Pseudocode equivalent:
 
  w2 = PopW();
  t1 = Pop<t>();
  Push<t>(t1 << w2);
 
  A left shift is all that is required to generate this instruction:
 
  wTest2 = wTest2 << wTest1;  /* generates ShlW */
 
 
                                     -♦-