ror

Operands

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

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

Variants

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