ROTATERIGHT


 

The ROTATERIGHT instruction performs a right 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 ROTATERIGHT instruction performs a right circular shift of the {source] variable bits by the {count} bit count value.

  2. The lowest order bit value is transferred to the highest 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, ROTATELEFT, Mathematical Instructions

 



PL/B Language Reference ROTATELEFT SHIFTLEFT