| Moteur de recherche de fiches techniques de composants électroniques |
|
PM0214 Fiches technique(PDF) 69 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
PM0214 Fiches technique(HTML) 69 Page - STMicroelectronics |
|
69 / 245 page ![]() DocID022708 Rev 4 69/245 PM0214 The STM32 Cortex-M4 instruction set 244 3.4.1 ADR Load PC-relative address. Syntax ADR{cond} Rd, label where: • ‘cond’ is an optional condition code (see Conditional execution on page 64) • ‘Rd’ is the destination register • ‘label’ is a PC-relative expression (see PC-relative expressions on page 64) Operation ADR determines the address by adding an immediate value to the PC. It writes the result to the destination register. ADR produces position-independent code, because the address is PC-relative. If you use ADR to generate a target address for a BX or BLX instruction, you must ensure that bit[0] of the address you generate is set to1 for correct execution. Values of label must be within the range -4095 to 4095 from the address in the PC. Note: You might have to use the .W suffix to get the maximum offset range or to generate addresses that are not word-aligned (see Instruction width selection on page 67). Restrictions Rd must be neither SP nor PC. Condition flags This instruction does not change the flags. Examples ADR R1, TextMessage; write address value of a location labelled as ; TextMessage to R1 |
|
Lien URL |
| ALLDATASHEET vous a-t-il été utile ? [ DONATE ] |
À propos de Alldatasheet | Publicité | Contactez-nous | Politique de confidentialité | Lien vers la fiche technique | Echange de liens | Fabricants All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |