Instruction Format:
LDC dst, src
Operation:
dst ← src
This instruction is used to load a byte constant from program memory into a working register, or vice versa.
The address of the program memory location is specified by a working register pair. The contents of the
source operand are not changed.
Flags
When the instruction is executed, the flags are set as follows:
C:
The value set by the preceding instruction.
Z:
The value set by the preceding instruction.
S:
The value set by the preceding instruction.
V:
The value set by the preceding instruction.
D:
The value set by the preceding instruction.
H:
The value set by the preceding instruction.
Example: Working register pairs R6 and R7 contain the value 30A2H and program memory location 30A2H
contains the value 22H. The following statement loads the value 22H into working register R2. The value of
program memory location 30A2H is unchanged by the load.
LDC R2, @RR6
Op Code: C2 26
OPC
dst
OPC
dst
OPC
(Hex)
src
C2
src
D2
.75
P
Â
Load Constant
Address Mode
dst
src
r
Irr
Irr
r
LDC
Need help?
Do you have a question about the Z8 PLUS and is the answer not in the manual?
Questions and answers