Department of Computer Scien
ce and Information Engineering
National Cheng Kung University, TAIWAN
HANEL
ROTATE INSTRUCTIONAND DATA
SERIALIZATIONRotating Right
and Left
RR A ;rotate right AIn rotate right
¾The 8 bits of the accumulator are rotated right one bit, and ¾Bit D0 exits from the LSB and enters into MSB, D7
MSB LSB
MOV A,#36H ;A = 0011 0110RR A
;A = 0001 1011
RR A
;A = 1000 1101
RR A
;A = 1100 0110
RR A
;A = 0110 0011