
<
2
.75
7UGT U/CPWCN
#FFTGUU5RCEG
=L/2*
7/<:
RR
Rotate Right
Instruction Format:
RR dst
Operation:
C
←
dst(0)
dst(0)
←
dst(1)
dst(1)
←
dst(2)
dst(2)
←
dst(3)
dst(3)
←
dst(4)
dst(4)
←
dst(5)
dst(5)
←
dst(6)
dst(6)
←
dst(7)
dst(7)
←
dst(0)
The contents of the destination operand are rotated to the right by one bit position. The initial value of bit
0
becomes the value of bit
7
and the
C
flag.
Flags:
When the instruction is executed, the flags are set as follows:
C:
1 if the value rotated from the least significant bit position (bit 1) was
1
.
Z:
1 if the result is
0
; otherwise, 0.
S:
1 if bit
7
of the result is 1; otherwise, 0.
V:
1 if arithmetic overflow occurred (if the sign of the destination operand changed during rotation);
otherwise, 0.
D:
The value set by the preceding instruction.
H:
The value set by the preceding instruction.
OPC
dst
OPC (Hex)
Address Mode
dst
E0
E1
R
IR
D7 D6 D5 D4 D3 D2 D1 D0
C