The rotate operations are commonly used for arithmeticmultiply and divide operations and for serial data transfer.
1. Arithmetic multiply and divide
EX: If A = 0000 1000 = 08H
1. By rotating right, A will be (A) = 0000 0100 = 04H
This means that A is divided by 2.
2. By rotating left, A will be (A)= 0001 0000 = 10H
This means that A is multiplied by 2. (10H = 16D).
Note: These procedure are invalid when logic 1 is rotatedleft from D7 to D0 or vice versa.
Ex: if A= 80H, when rotated left it becomes 01H.