SAM3N0C Atmel Corporation, SAM3N0C Datasheet - Page 88

no-image

SAM3N0C

Manufacturer Part Number
SAM3N0C
Description
Manufacturer
Atmel Corporation
Datasheets
10.12.1
10.12.1.1
10.12.1.2
10.12.1.3
10.12.1.4
10.12.1.5
88
ADR
SAM3N
ADR
Syntax
Operation
Restrictions
Condition flags
Examples
R1, TextMessage
Load PC-relative address.
where:
cond
Rd
label
ADR determines the address by adding an immediate value to the PC, and 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 of − 4095 to +4095 from the address in the PC.
You might have to use the .W suffix to get the maximum offset range or to generate addresses
that are not word-aligned. See
Rd must not be SP and must not be PC.
This instruction does not change the flags.
ADR{cond} Rd, label
is an optional condition code, see
is the destination register.
is a PC-relative expression. See
; Write address value of a location labelled as
; TextMessage to R1
“Instruction width selection” on page
“PC-relative expressions” on page
“Conditional execution” on page
86.
11011A–ATARM–04-Oct-10
84.
84.

Related parts for SAM3N0C