ZiLOG Z8 User Manual page 199

Hide thumbs Also See for Z8:
Table of Contents

Advertisement

ZiLOG
RRC
ROTATE RIGHT THROUGH CARRY
RRC
Rotate Right Through Carry
RRC dst
Instruction Format:
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) <— C
The contents of the destination operand with the C Flag are rotated right by one bit position. The initial value of bit
0 replaces the C Flag and the initial value of the C Flag replaces bit 7.
Flags:
C:
Set if the bit rotated from the least significant bit position was 1 (i.e., bit 0 was 1).
Z:
Set if the result is zero; cleared otherwise.
S:
Set if the result bit 7 is set; cleared otherwise.
V:
Set if arithmetic overflow occurred (if the sign of the destination operand changed during rotation);
cleared otherwise.
D:
Unaffected
H:
Unaffected
Note:
Address modes R or IR can be used to specify a 4-bit Working Register. In this format, the destination Working
Register operand is specified by adding 1110B (EH) to the high nibble of the operand. For example, if Working
Register R12 (CH) is the destination operand, then ECH will be used as the destination operand in the Op Code.
UM001601-0803
Z8 Microcontrollers
Instruction Descriptions and Formats
12-59

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Z8 and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents