Z8
®
CPU
User Manual
UM001604-0108 Instruction Description
226
of the operand. For example, if Working Register R12 (CH) is the destination operand, then
ECh is used as the destination operand in the Op Code.
Example 1
If the contents of Register C6h are DDh (11011101b) and the C Flag is reset, the state-
ment:
RRC C6h
Op Code: C0 C6
leaves the value 6Eh (01101110b) in register C6h. The C and V Flags are set, and the Z
and S Flags are cleared.
Example 2
If the contents of Register 2Ch are EDh, the contents of Register EDh is ← (00000000b),
and the C Flag is reset, the statement:
RRC @2Ch
Op Code: C1 2C
leaves the value 02h (00000010b) in Register EDh. The C, Z, S, and V Flags are reset.
Edst