![Samsung S3F80P5X Скачать руководство пользователя страница 38](http://html.mh-extra.com/html/samsung/s3f80p5x/s3f80p5x_user-manual_349401038.webp)
ADDRESS SPACE
S3F80P5_UM_ REV1.00
16-byte non-contiguous
working register block
Register File
Contains 32
8-Byte Slices
8-Byte Slice
00H (R0)
07H (R15)
F0H (R0)
F7H (R7)
RP1
RP0
1 1 1 1 0 X X X
0 0 0 0 0 X X X
8-Byte Slice
Figure 2-8. Non-Contiguous 16-Byte Working Register Block
PROGRAMMING TIP — Using the RPs to Calculate the Sum of a Series of Registers
Calculate the sum of registers 80H–85H using the register pointer. The register addresses 80H through 85H
contains the values 10H, 11H, 12H, 13H, 14H, and 15 H, respectively:
SRP0 #80H
;
RP0
←
80H
ADD
R0,R1
;
R0
←
R0 + R1
ADC
R0,R2
;
R0
←
R0 + R2 + C
ADC
R0,R3
;
R0
←
R0 + R3 + C
ADC
R0,R4
;
R0
←
R0 + R4 + C
ADC R0,R5
;
R0
←
R0 + R5 + C
The sum of these six registers, 6FH, is located in the register R0 (80H). The instruction string used in this
example takes 12 bytes of instruction code and its execution time is 36 cycles. If the register pointer is not used to
calculate the sum of these registers, the following instruction sequence would have to be used:
ADD 80H,81H
;
80H
←
(80H) + (81H)
ADC 80H,82H
;
80H
←
(80H) + (82H) + C
ADC
80H,83H
;
80H
←
(80H) + (83H) + C
ADC
80H,84H
;
80H
←
(80H) + (84H) + C
ADC 80H,85H
;
80H
←
(80H) + (85H) + C
Now, the sum of the six registers is also located in register 80H. However, this instruction string takes 15 bytes of
instruction code instead of 12 bytes, and its execution time is 50 cycles instead of 36 cycles.
2-12
Содержание 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 ...