Generates a PC-relative address.
Is the destination register.
Is a PC-relative expression. See PC‑relative expressions.
ADR generates an address by adding an immediate
value to the PC, and writes the result to the destination register.
ADR facilitates the generation of position-independent
code, because the address is PC-relative.
If you use
ADR to generate a target address for
BLX instruction, you must ensure
that bit of the address you generate is set to 1 for correct
In this instruction
specify R0-R7. The data-value addressed must be word aligned and within
1020 bytes of the current PC.