Assembly Language Help (alang.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.
SHLD/SHRD Instruction
 Detail Key                               Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
  Title:    Double-Precision Shift                Flags: O D I T S Z A P C
            80386/486 Only                               ═════════════════
                                                         ?       ± ± ? ± ±
  Syntax:   SHLD dest,src,count
            SHRD dest,src,count
 
  See also: .386, SHL, ROL
 
  Description:
 
     SHLD shifts the bits of the second operand into the first operand.
     The number of bits shifted is specified by the third operand. SHLD
     shifts the first operand to the left by the number of positions
     specified in the count. The positions opened by the shift are
     filled by the most significant bits of the second operand.
 
     SHRD shifts the first operand to the right by the number of
     positions specified in the count. The positions opened by the
     shift are filled by the least significant bits of the second
     operand. The count operand can be either CL or an 8-bit constant.
     If a shift count larger than 31 is given, it is adjusted by
     using the remainder (modulo) of a division by 32.
                                    -♦-