Ldc/Lde — Load Memory - Samsung S3F84B8 User Manual

8-bit cmos
Hide thumbs Also See for S3F84B8:
Table of Contents

Advertisement

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

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents