ROTATELEFT


 

The ROTATELEFT instruction performs a left circular shift of variable's bits. It uses the following format:

 

 

[label]

ROTATERIGHT

{source},{count}

 

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:

  1. The ROTATELEFT instruction performs a left circular shift of the {source] variable bits by the {count} bit count value.

  2. The highest order bit value is transferred to the lowest order bit value for each bit that is shifted.

  3. The ZERO flag is set if the resulting {source} variable value is zero.

 

 

See Also: SHIFTLEFT, SHIFTLEFTA, SHIFTRIGHT, SHIFTRIGHTA, ROTATERIGHT, Mathematical Instructions

 



PL/B Language Reference POWER ROTATERIGHT