Ldc/Lde Load Memory - Samsung S3C8275X User Manual

8-bit cmos microcontrollers
Table of Contents

Advertisement

INSTRUCTION SET
LDC/LDE
— Load Memory
LDC/LDE
dst,src
dst ← src
Operation:
This instruction loads a byte from program or data memory into a working register or vice-versa.
The source values are unaffected. LDC refers to program memory and LDE to data memory. The
assembler makes 'Irr' or 'rr' values an even number for program memory and odd an odd number
for data memory.
Flags:
No flags are affected.
Format:
1.
opc
2.
opc
3.
opc
4.
opc
5.
opc
6.
opc
7.
opc
8.
opc
9.
opc
10.
opc
NOTES:
1.
2.
3.
4.
6-52
dst | src
src | dst
XS
dst | src
XS
src | dst
XL
dst | src
L
XL
src | dst
L
DA
dst |
0000
L
DA
src | 0000
L
DA
dst | 0001
L
DA
src | 0001
L
The source (src) or working register pair [rr] for formats 5 and 6 cannot use register pair 0–1.
For formats 3 and 4, the destination address 'XS [rr]' and the source address 'XS [rr]' are each
one byte.
For formats 5 and 6, the destination address 'XL [rr] and the source address 'XL [rr]' are each two
bytes.
The DA and r source values for formats 7 and 8 are used to address program memory; the
second set of values, used in formats 9 and 10, are used to address data memory.
S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X
Bytes
2
2
3
3
XL
4
H
XL
4
H
DA
4
H
DA
4
H
DA
4
H
DA
4
H
Cycles
Opcode
(Hex)
10
C3
10
D3
12
E7
12
F7
14
A7
14
B7
14
A7
14
B7
14
A7
14
B7
Addr Mode
dst
src
r
Irr
Irr
r
r
XS [rr]
XS [rr]
r
r
XL [rr]
XL [rr]
r
r
DA
DA
r
r
DA
DA
r

Advertisement

Table of Contents
loading

This manual is also suitable for:

F8275xF8274xC8278xC8274xF8278x

Table of Contents