
<
2
.75
7UGT U/CPWCN
#FFTGUU5RCEG
=L/2*
7/<:
LD
Load
Operation:
dst
←
src
The contents of the source operand are loaded into the destination operand. The contents of the source
operand are not changed.
Flags:
When the instruction is executed, the flags are set as follows:
Example: The following statement loads the value
34H
into working register
R15
.
LD R15, #34H
Op Code: FC 34
Example: Register
34H
contains the value
FCH
. The following statement loads the value
FCH
into working
register
R14
. The contents of register
34H
are not changed.
LD R14, 34H
Op Code: F8 34
Example: Working register
R14
contains the value
45H
. The following statement loads the value
45H
into
register
34H
. The contents of working register
R14
are not changed.
LD 34H, R14
Op Code: E9 34
Example: Working register
R12
contains the value
34H
. Register
34H
contains the value
FFH
. The
following statement loads the value
FFH
into working register
R13
. The contents of working register
R12
and register
34H
are not changed.
LD R13, @R12
Op Code: E3 DC
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.