
eZ8
™
CPU Core
User Manual
UM012820-0810 RRC Instruction
216
Attributes
Escaped Mode Addressing
Using Escaped Mode Addressing, address modes R or IR specify a work-
ing register. If the destination address is prefixed by Eh (1110b), a work-
ing register is inferred. For example, if Working Register R12 (Ch) is the
preferred destination operand, use
ECh as the destination operand in the
Op Code. To access registers with addresses
E0h to EFh, either set the
Working Group Pointer,
RP[7:4], to Eh or use indirect addressing.
Sample Usage
If Register C6h contains the value DDh (11011101b) and the Carry flag is
reset, the following statement leaves the value
6Eh (01101110b) in Reg-
ister C6h, sets the C and V flags and clears the Z and S flags:
RRC
C6h
Object Code: C0 C6
If Register 2Ch contains the value EDh, Register EDh contains the value
00h (00000000b) and the Carry flag is reset, the following statement
leaves the value
00h (00000000b) in Register EDh and resets the C, Z, S,
and V flags:
RRC @
2Ch
Object Code: C1 2C
Mnemonic Destination
Op
Code
(Hex) Operand 1 Operand 2 Operand 3
RRC R1 C0 R1 — —
RRC @R1 C1 R1 — —
Komentarze do niniejszej Instrukcji