ROR (immediate)
Rotate right (immediate).
This instruction is an alias of EXTR
.
Syntax
ROR
Wd
, Ws
, #shift
; 32-bit general registers
Equivalent to EXTR
.Wd
, Ws
, Ws
, #shift
ROR
Xd
, Xs
, #shift
; 64-bit general registers
Equivalent to EXTR
.Xd
, Xs
, Xs
, #shift
Where:
Wd
-
Is the 32-bit name of the general-purpose destination register.
Ws
-
Is the 32-bit name of the general-purpose source register.
shift
-
Depends on the instruction variant:
- 32-bit general registers
-
Is the amount by which to rotate, in the range 0 to 31.
- 64-bit general registers
-
Is the amount by which to rotate, in the range 0 to 63.
Xd
-
Is the 64-bit name of the general-purpose destination register.
Xs
-
Is the 64-bit name of the general-purpose source register.
Operation
Rotate right (immediate) provides the value of the contents of a register rotated by a variable number of bits. The bits that are rotated off the right end are inserted into the vacated bit positions on the left.
, where R
d = ROR(R
s, shift
)
is either R
W
or X
.