![Samsung S3F80P5X Скачать руководство пользователя страница 55](http://html.mh-extra.com/html/samsung/s3f80p5x/s3f80p5x_user-manual_349401055.webp)
S3F80P5_UM_ REV1.00
ADDRESSING MODES
INDEXED ADDRESSING MODE (X)
Indexed (X) addressing mode adds an offset value to a base address during instruction execution in order to
calculate the effective operand address (see Figure 3–7). You can use Indexed addressing mode to access
locations in the internal register file or in external memory (if implemented). You cannot, however, access
locations C0H–FFH in set 1 using indexed addressing.
In short offset Indexed addressing mode, the 8-bit displacement is treated as a signed integer in the range –128
to +127. This applies to external memory accesses only (see Figure 3–8).
For register file addressing, an 8-bit base address provided by the instruction is added to an 8-bit offset contained
in a working register. For external memory accesses, the base address is stored in the working register pair
designated in the instruction. The 8-bit or 16-bit offset given in the instruction is then added to the base address
(see Figure 3–9).
The only instruction that supports indexed addressing mode for the internal register file is the Load instruction
(LD). The LDC and LDE instructions support indexed addressing mode for internal program memory and for
external data memory (if implemented).
dst/src
OPCODE
Two-Operand
Instruction
Example
Points to one of the
Woking Registers
(1 of 8)
Sample Instruction:
LD R0, #BASE[R1]
; Where BASE is an 8-bit immediate value.
Program Memory
Register File
x
3 LSBs
Value used in
Instruction
OPERAND
INDEX
Base Address
RP0 or RP1
Selected RP
points to
start of
working
register
block
+
~
~
~
MSB Points to
RP0 or RP1
~
Figure 3-7. Indexed Addressing to Register File
3-7
Содержание S3F80P5X
Страница 10: ......
Страница 14: ......
Страница 19: ...S3F80P5_UM_ REV1 00 PRODUCT OVERVIEW BLOCK DIAGRAM 24 PIN PACKAGE Figure 1 1 Block Diagram 24 pin 1 3 ...
Страница 48: ...ADDRESS SPACE S3F80P5_UM_ REV1 00 NOTES 2 22 ...
Страница 122: ...INTERRUPT STRUCTURE S3F80P5_UM_ REV1 00 NOTES 5 18 ...
Страница 210: ...INSTRUCTION SET S3F80P5_UM_ REV1 00 NOTES 6 88 ...
Страница 216: ...CLOCK AND POWER CIRCUITS S3F80P5_UM_ REV1 00 NOTES 7 6 ...
Страница 266: ...COUNTER A S3F80P5_UM_ REV1 00 NOTES 12 8 ...
Страница 290: ...EMBEDDED FLASH MEMORY INTERFACE S3F80P5_UM_ REV1 00 NOTES 14 18 ...
Страница 316: ...S3F80P5_UM_ REV1 00 ELECTRICAL DATA STOP LED This LED is ON when the evaluation chip S3E80PB is in stop mode 19 5 ...
Страница 321: ...DEVELOPMENT TOOLS S3F80P5_UM_ REV1 00 NOTES 19 10 ...