Topic: DMD0159

Help File Version: 2.9.4.37

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 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 numeric 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: