shl

Shift Logical Left

SHL r/m, imm8

Shifts bits left (same as SAL).

Details

The Shift Logical Left instruction shifts bits left (same as SAL).

Pseudocode Operation

DEST <- DEST << count  // logical/arithmetic left shift

Example

SHL rbx, 3

Encoding

Binary Layout
C1
+0
ModRM
+1
 
Format Legacy
Opcode C1 /4
Extension Base

Operands

  • dest
    Register or memory operand
  • src
    8-bit signed immediate