Topic: DMD0160

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 (Element Browser) or Down-Arrow key (Auto-Complete) at any time to see a complete list of the memory locations that are valid in the current field of the instruction.

 

Input/Output - designates 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:

 


Rung Example: