rol

Rotate Left

ROL r/m, imm8

Rotates bits left.

Details

The Rotate Left instruction rotates bits left.

Pseudocode Operation

DEST <- rotate_left(DEST, count)

Example

ROL rbx, 3

Encoding

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

Operands

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