s3c72m9 Samsung Semiconductor, Inc., s3c72m9 Datasheet - Page 172

no-image

s3c72m9

Manufacturer Part Number
s3c72m9
Description
The S3c72m5/s3c72m7/s3c72m9 Single-chip Cmos Microcontroller Has Been Designed For High Performance Using Samsung S
Manufacturer
Samsung Semiconductor, Inc.
Datasheet
SAM47 INSTRUCTION SET
LDC —
LDC
Examples:
5-68
(Continued)
2. The following instructions will load one of four values defined by the define byte (DB) directive
3. Normally, the LDC EA, @EA and the LDC EA, @WX instructions reference the table data
4. Here is another example of page referencing with the LDC instruction:
Load Code Byte
to the extended accumulator:
If the instruction 'LD WX,#01H' is executed in place of 'LD WX,#00H', then
EA
If the instruction 'LD WX,#02H' is executed in place of 'LD WX,#00H', then
EA
on the page on which the instruction is located. If, however, the instruction is located at address
xxFFH, it will reference table data on the next page. In this example, the upper 4 bits of the
address at location 0200H is loaded into register E and the lower 4 bits into register A:
DISPLAY LD
01FDH
01FFH
address 0501H = 77H.
address 0502H = 88H.
ORG
DB
DB
DB
DB
LDC
RET
ORG
LD
LDC
ORG
DB
SMB
LD
LD
LDC
LD
0500
66H
77H
88H
99H
WX,#00H
EA,@WX
01FDH
WX,#00H
EA,@WX
0100
67H
0
HL,#30H
WX,#00H
EA,@WX
@HL,EA
; EA
; E
; A
; Even number
; E
; A
; RAM (30H)
upper 4 bits of 0200H address
lower 4 bits of 0200H address
upper 4 bits of 0100H address
lower 4 bits of 0100H address
address 0500H = 66H
S3C72M5/C72M7/C72M9/P72M9 (Preliminary Spec)
7, RAM (31H)
6

Related parts for s3c72m9