Table of Contents

Advertisement

KS86C6004/C6008/P6008 MICROCONTROLLER (Preliminary Spec)
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.
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 address 'XS [rr]' and the source address 'XS [rr]' are each one byte.
3.
For formats 5 and 6, the destination address 'XL [rr] and the source address 'XL [rr]' are each two bytes.
4.
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.
dst | src
src | dst
dst | src
XS
src | dst
XS
dst | src
XL
L
src | dst
XL
L
dst | 0000
DA
L
src | 0000
DA
L
dst | 0001
DA
L
src | 0001
DA
L
Bytes
2
2
3
3
XL
4
H
XL
4
H
4
DA
H
DA
4
H
4
DA
H
DA
4
H
SAM87RI INSTRUCTION SET
Cycles
Opcode
(Hex)
12
C3
12
D3
18
E7
18
F7
20
A7
20
B7
20
A7
20
B7
20
A7
20
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
6–29

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ks86c6008Ks86p6008

Table of Contents