Samsung KS57C2308 Manual page 134

Single-chip cmos microcontroller
Table of Contents

Advertisement

SAM47 INSTRUCTION SET
LD
— Load
LD
dst,src
Operation:
Operand
A,#im
A,@Rra
A,DA
A,Ra
Ra,#im
RR,#imm
DA,A
Ra,A
EA,@HL
EA,DA
EA,RRb
@HL,A
DA,EA
RRb,EA
@HL,EA
Description:
The contents of the source are loaded into the destination. The source's contents are unaffected.
If an instruction such as "LD A,#im" (LD EA,#imm) or "LD HL,#imm" is written more than two
times in succession, only the first LD will be executed; the other similar instructions that
immediately follow the first LD will be treated like a NOP. This is called the "redundancy effect"
(see examples below).
Operand
A,#im
A,@Rra
A,DA
A,Ra
Ra,#im
5-60
Operation Summary
Load 4-bit immediate data to A
Load indirect data memory contents to A
Load direct data memory contents to A
Load register contents to A
Load 4-bit immediate data to register
Load 8-bit immediate data to register
Load contents of A to direct data memory
Load contents of A to register
Load indirect data memory contents to EA
Load direct data memory contents to EA
Load register contents to EA
Load contents of A to indirect data memory
Load contents of EA to data memory
Load contents of EA to register
Load contents of EA to indirect data memory
Binary Code
1
0
1
1
d3
1
0
0
0
1
0
0
0
a7
a6
a5
a4
a3
1
1
0
1
0
0
0
0
1
1
0
1
d3
d2
d1
d0
d2
d1
d0 A
1
i2
i1
i0
A
1
1
0
0
A
a2
a1
a0
1
1
0
1
A
1
r2
r1
r0
1
0
0
1
Ra
1
r2
r1
r0
KS57C2308/P2308/C2316/P2316
Bytes
Cycles
1
1
2
2
2
2
2
2
2
2
2
1
2
2
2
Operation Notation
im
(RRa)
DA
Ra
im
1
1
2
2
2
2
2
2
2
2
2
1
2
2
2

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

P2308C2316P2316Ks57p2308Ks57c2316Ks57p2316

Table of Contents