Format 6: pc-relative load – Samsung S3C2440A User Manual
Page 137

THUMB INSTRUCTION SET
S3C2440A RISC MICROPROCESSOR
4-16
FORMAT 6: PC-RELATIVE LOAD
15
0
0
14
10
[7:0] Immediate Value
[10:8] Destination Register
Word 8
0
0
13
12
11
Rd
0
0
8
7
Figure 4-7. Format 6
OPERATION
This instruction loads a word from an address specified as a 10-bit immediate offset from the PC. The THUMB
assembler syntax is shown below.
Table 4-7. Summary of PC-Relative Load Instruction
THUMB assembler
ARM equivalent
Description
LDR Rd, [PC, #Imm]
LDR Rd, [R15, #Imm]
Add unsigned offset (255 words, 1020 bytes) in
Imm to the current value of the PC. Load the
word from the resulting address into Rd.
NOTE
The value specified by #Imm is a full 10-bit address, but must always be word-aligned (ie with bits 1:0 set to 0),
since the assembler places #Imm >> 2 in field Word 8. The value of the PC will be 4 bytes greater than the address
of this instruction, but bit 1 of the PC is forced to 0 to ensure it is word aligned.
- NC10 (12 pages)
- GT-P7300 (133 pages)
- M6000 (130 pages)
- M60 (201 pages)
- P55 (172 pages)
- Tablet (44 pages)
- Q45c (199 pages)
- Galaxy Tab 8.9 (188 pages)
- X22 (197 pages)
- Q46 (194 pages)
- GT-P7100 (108 pages)
- R71 (196 pages)
- Q71 (191 pages)
- M55 (161 pages)
- GT-P6210 (200 pages)
- V1.3.0 (26 pages)
- Q35 (157 pages)
- 8.9 (176 pages)
- X65 (195 pages)
- Galaxy Tab A3LSGHI987 (146 pages)
- GALAXY Tab SGH-I987 (149 pages)
- Q30 (127 pages)
- NP270E5V (27 pages)
- NP670Z5E (157 pages)
- NP270E5GI (134 pages)
- NP275E5E (135 pages)
- NP535U3C (154 pages)
- NP370R5E (133 pages)
- XE500T1C (117 pages)
- XE500T1C (122 pages)
- NP270E5UE (27 pages)
- NP930X5J-S01US (115 pages)
- NP930X5J-S01US (149 pages)
- NP900X4D-A03US (129 pages)
- NP900X3D-A03US (138 pages)
- NP470R5E-K01UB (120 pages)
- NP470R5E-K01UB (126 pages)
- NP470R5E-K01UB (125 pages)
- NP700Z3C-S01US (156 pages)
- NP355V4C-A01VE (140 pages)
- NP940X3G-S01US (149 pages)
- NP940X3G-S01US (147 pages)
- NP915S3G-K02US (118 pages)
- NP915S3G-K02US (145 pages)