<<< The NEG Instruction     Index     The SHR Instruction, Shift Logical Bit Right >>>

14. The SHL Instruction, Shift Logical Bit Left


  • SHL is one of the Bit Manipulation Instructions:

            mov al, 75h
            mov cl, 3
            shl al, cl
    
  • The instruction format is

    • SHL destination, count

    where  1 <= count <= 31.

  • All bits in the destination operand are shifted left count times.

  • The less-significant bit (LSB) is filled with 0 each time.

  • The most-significant bit (MSB) is placed into carry flag CF.

  • Other flags are modified according to the final result.

  • Execution of  SHL AL, CL :

      Execution of SHL AL, CL


<<< The NEG Instruction     Index     The SHR Instruction, Shift Logical Bit Right >>>