rol

Operands

$reg, $reg, [$reg / imm]

ROtate Left : Set $t1 to ($t2 rotated left by number of bit positions specified in $t3)

Variants

  • ROtate Left : Set $t1 to ($t2 rotated left by number of bit positions specified in $t3) rol $t1,$t2,$t3
  • ROtate Left : Set $t1 to ($t2 rotated left by number of bit positions specified in 5-bit immediate) rol $t1,$t2,10
# Shift or rotate an initialized word; inspect $t2: 0x00000120.
li $t0, 0x12
rol $t2, $t0, 4