S3C72G9 Samsung semiconductor, S3C72G9 Datasheet - Page 69

no-image

S3C72G9

Manufacturer Part Number
S3C72G9
Description
The S3C72G9 single-chip CMOS microcontroller has been designed for high performance using Samsungs newest 4-bit CPU core/ SAM47 (Samsung Arrangeable M
Manufacturer
Samsung semiconductor
Datasheet
 

LDC
Examples:
(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:
to the extended accumulator:
DISPLAY
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:
01FDH
01FFH
address 0501H = 77H.
address 0502H = 88H.
ORG
DB
DB
DB
DB
LD
LDC
RET
ORG
LD
LDC
ORG
DB
SMB
LD
LD
LDC
LD

0500H
66H
77H
88H
99H
WX,#00H
EA,@WX ; EA
01FDH
WX,#00H
EA,@WX ; E
0100H
67H
0
HL,#30H ; Even number
WX,#00H
EA,@WX ; E
@HL,EA ; RAM (30H)
; A
; A
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
7, RAM (31H)
   
6


Related parts for S3C72G9