
eZ8
™
CPU Core
User Manual
UM012820-0810 LDC Instruction
170
Attributes
Sample Usage
If Working Register Pair R6 and R7 contain the value 30A2h and Pro-
gram Memory location 30A2h contains the value 22h, the following
statement loads the value
22h into Working Register R2:
LDC R2, @RR6
Object Code: C2 26
The value of Program Memory location 30A2h is unchanged by the load.
If Working Register R3 contains the value A5h, Working Register Pair R8
and R9 contain the value
2A72h, and Program Memory location 2A72h
contains the value
42h, the following statement loads the value 42h into
Register
A5h:
LDC @R3, @RR8
Object Code: C5 38
The value of Program Memory location 2A72h is unchanged by the load.
If Working Register R2 contains the value 22h, and Working Register
Pair R6 and R7 contains the value
10A2h, the following statement loads
the value
22h into Program Memory location 10A2h:
LDC @RR6, R2
Object Code: D2 26
The value of Working Register R2 is unchanged by the load.
Mnemonic
Destination,
Source
Op
Code
(Hex) Operand 1 Operand 2 Operand 3
LDC r1, @rr2 C2 {r1, rr2} — —
LDC @r1, @rr2 C5 {r1, rr2} — —
LDC @rr1, r2 D2 {r2, rr1} — —
Comentarios a estos manuales