Samsung S3F80P5X User Manual page 57

S3f80p5 microcontrollers
Table of Contents

Advertisement

S3F80P5_UM_ REV1.00
INDEXED ADDRESSING MODE (Continued)
4-bit Working
Register Address
Sample Instructions:
LDC
LDE
NOTE:
Program Memory
OFFSET
OFFSET
dst/src
x
OPCODE
R4, #1000H[RR2]
R4,#1000H[RR2]
LDE command is not available, because an external interface is not implemented
for the S3F80K5.
Figure 3-9. Indexed Addressing to Program or Data Memory
MSB Points to
RP0 or RP1
~
NEXT 2 BITS
Point to Working
Register Pair
LSB Selects
+
16-Bit
16-Bit
16-Bit
; The values in the program address (RR2 + 1000H)
are loaded into register R4.
; Identical operation to LDC example, except that
external data memory is accessed.
ADDRESSING MODES
Register File
RP0 or RP1
~
Register
Pair
Program Memory
or
Data Memory
Value used in
OPERAND
Instruction
Selected
RP points
to start of
working
register
block
16-Bit
address
added to
offset
3-9

Advertisement

Table of Contents
loading

Table of Contents