ROTATELEFT
The ROTATELEFT instruction performs a left circular shift of variable's bits. It uses the following format:
|
|
|
|
|
Where:
label
Optional. A Program Execution Label.
source
Required. An Integer variable that is modified.
count
Required. A number of bits to rotate.
Flags Affected: ZERO
Note the following:
The ROTATELEFT instruction performs a left circular shift of the {source] variable bits by the {count} bit count value.
The highest order bit value is transferred to the lowest order bit value for each bit that is shifted.
The ZERO flag is set if the resulting {source} variable value is zero.
See Also: SHIFTLEFT, SHIFTLEFTA, SHIFTRIGHT, SHIFTRIGHTA, ROTATERIGHT, Mathematical Instructions
![]() |