XA User Guide 6-150 4/17/98
RLC Rotate Left Through Carry
Syntax: RLC Rd, #data4
Operation:
Description: The variable specified by the destination operand is rotated left through the carry flag
by the number of bits specified in the immediate data operand. The data size may be 8 or 16 bits.
The number of bit positions shifted may be from 0 to 15.
Size: Byte, Word
Flags Updated: C, N, Z
Bytes: 2
Clocks: 4 + 1 for each 2 bits of shift
Encoding:
C MSB LSB
(Rd)
count <- #data4
Do While (count not equal to 0)
(temp) <- (C)
(C) <- (dest
msb
)
(dest
n
) <- (dest
n-1
)
(dest
0
) <- (temp)
(count) <- count -1
End While
1 1 0 1 SZ 1 1 1 d d d d #data4