Department of Computer Scien
ce and Information Engineering
National Cheng Kung University, TAIWAN
HANEL
ROTATE INSTRUCTIONAND DATA
SERIALIZATIONRotating Right
and Left(cont’)
RL A ;rotate left AIn rotate left
¾The 8 bits of the accumulator are rotated left one bit, and ¾Bit D7 exits from the MSB and enters into LSB, D0
MSB LSB
MOV A,#72H ;A = 0111 0010RL A
;A = 1110 0100
RL A
;A = 1100 1001