Samsung KS57C2308 Manual page 140

Single-chip cmos microcontroller
Table of Contents

Advertisement

SAM47 INSTRUCTION SET
LDC
— Load Code Byte
LDC
dst,src
Operation:
Operand
EA,@WX
EA,@EA
Description:
This instruction is used to load a byte from program memory into an extended accumulator. The
address of the byte fetched is the 6 highest bit values in the program counter and the contents of
an 8-bit working register (either WX or EA). The contents of the source are unaffected.
Operand
EA,@WX
EA,@EA
Examples:
1. The following instructions will load one of four values defined by the define byte (DB) directive
to the extended accumulator:
DISPLAY
If the instruction "LD EA,#01H" is executed in place of "LD EA,#00H", The content of 0501H
(77H) is loaded to the EA register. If "LD EA,#02H" is executed, the content of address 0502H
(88H) is loaded to EA.
5-66
Operation Summary
Load code byte from WX to EA
Load code byte from EA to EA
Binary Code
1
1
0
0
1
1
0
0
LD
EA,#00H
CALL
DISPLAY
JPS
MAIN
ORG
0500H
DB
66H
DB
77H
DB
88H
DB
99H
LDC
EA,@EA
; EA
RET
1
1
0
0
EA
1
0
0
0
EA
address 0500H = 66H
KS57C2308/P2308/C2316/P2316
Bytes
Cycles
1
1
Operation Notation
[PC13–8 + (WX)]
[PC13–8 + (EA)]
3
3

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

P2308C2316P2316Ks57p2308Ks57c2316Ks57p2316

Table of Contents