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.
Boolean and Shift Instructions
                                             Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
     Select an instruction for more information.
 
     Instruction     Description
 
     AND             Bitwise AND
     OR              Bitwise OR
     XOR             Bitwise exclusive OR
     NOT             Logical negation of each bit
 
     SHL             Shift bits left
     SHR             Shift bits right
     SHLD            Join source and destination, and shift bits
                     left (386+)
     SHRD            Join source and destination, and shift bits
                     right (386+)
     SAL             Shift arithmetic left (identical to SHL)
     SAR             Shift arithmetic right (preserves sign)
     RCL             Rotate through carry left
     RCR             Rotate through carry right
     ROL             Rotate left
     ROR             Rotate right
 
     BSF             Bit scan forward (386+)
     BSR             Bit scan reverse (386+)
     BT/BTS/         Bit test (with Set/Reset/Complement)(386+)
     BTR/BTC
     SETcc           Set condition code (386+)
                                    -♦-