S3C9228/P9228

ADDRESSING MODES

 

 

INDEXED ADDRESSING MODE (Concluded)

 

 

 

Program Memory

 

 

 

 

 

 

 

 

 

 

XLH (OFFSET)

 

 

 

 

 

 

 

 

 

 

 

4-Bit Working

 

 

XLL (OFFSET)

 

 

 

 

 

 

 

 

dst

src

 

Register Address

 

 

 

 

 

 

 

OPCODE

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Sample Instructions:

 

 

Register File

 

NEXT 3 Bits

Register

 

Pair

 

 

Point to Working

16-Bit

 

Register Pair

 

address

 

(1 of 8)

 

added to

 

 

LSB Selects

offset

 

 

+

 

8-Bits

16-Bits

 

 

 

Program Memory

 

 

or

 

 

Data Memory

 

 

 

 

 

Value used in

 

 

 

 

 

 

 

 

 

 

16-Bits

OPERAND

 

 

Instruction

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

LDC

R4, #1000H[RR2]

;

The values in the program address (RR2 +

#1000H)

 

 

 

 

 

 

are loaded into register R4.

LDE

R4, #1000H[RR2]

;

Identical operation to LDC example, except that

 

 

 

external program memory is accessed.

Figure 3-9. Indexed Addressing to Program or Data Memory with Long Offset

3-9

Page 49
Image 49
Samsung 8-Bit CMOS Microcontroller, S3C9228/P9228 user manual Indexed Addressing Mode Concluded