Topic: DMD0160

Help File Version: 2.9.4.37

ROTR - Rotate Right


The Rotate Right (ROTR) instruction rotates the bits in the specified location a specified number of bit locations to the right. Bits that are rotated out on the right are rotated back in on the left. As an example, assume V0 contains the hexadecimal value 0xF123; if it is rotated right 4 bits, the result after the rotate would be 0x3F12.

 

 


Parameters:

Note: Use the F9 key to open the Default Element Selection Tool (the Element Picker or the Element Browser) or use the Down-Arrow key (Auto-Complete) on any parameter field to see a complete list of the memory locations that are valid for that parameter of the instruction.

 

Input / Output - specifies the memory location that contains the bits to rotate. This can be any writable numeric location.

 

Number of Bits - specifies how many bits are to be rotated in the Input / Output location. This can be any constant value in the range of 1 to 31, or any readable numeric location.

 


See Also:

ROTL - Rotate Left

 

ROTR - Rotate Right

 

SR - Shift Register

 

Math Shift Left Operator <<

 

Math Shift Right Operator >>

 

Math Unsigned Shift Right Operator >>>

 


Rung Example: