Topic: DMD0159

ROTL - Rotate Left


The Rotate Left (ROTL) instruction rotates the bits in the specified location a specified number of bit locations to the left.

 

Bits that are rotated out on the left are rotated back in on the right. As an example, assume V0 contains the hexadecimal value 0xF123; if it is rotated left 4 bits, the result after the rotate would be 0x123F.

 

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: