SAM3N0B Atmel Corporation, SAM3N0B Datasheet - Page 95

no-image

SAM3N0B

Manufacturer Part Number
SAM3N0B
Description
Manufacturer
Atmel Corporation
Datasheets
10.12.5
10.12.5.1
10.12.5.2
10.12.5.3
11011A–ATARM–04-Oct-10
LDR, PC-relative
Syntax
Operation
Restrictions
Load register from memory.
where:
type
cond
Rt
Rt2
label
LDR loads a register with a value from a PC-relative memory address. The memory address is
specified by a label or by an offset from the PC.
The value to load or store can be a byte, halfword, or word. For load instructions, bytes and half-
words can either be signed or unsigned. See
label must be within a limited range of the current instruction.
offsets between label and the PC.
Table 10-19. Offset ranges
You might have to use the .W suffix to get the maximum offset range. See
selection” on page
In these instructions:
When Rt is PC in a word load instruction:
Instruction type
Word, halfword, signed halfword, byte, signed
byte
Two words
• Rt can be SP or PC only for word loads
• Rt2 must not be SP and must not be PC
• Rt must be different from Rt2.
LDR{type}{cond} Rt, label
LDRD{cond} Rt, Rt2, label
B
SB
H
SH
-
is one of:
unsigned byte, zero extend to 32 bits.
signed byte, sign extend to 32 bits.
unsigned halfword, zero extend to 32 bits.
signed halfword, sign extend to 32 bits.
omit, for word.
is an optional condition code, see
is the register to load or store.
is the second register to load or store.
is a PC-relative expression. See
86.
“Address alignment” on page
; Load two words
Offset range
− 4095 to 4095
− 1020 to 1020
“PC-relative expressions” on page
“Conditional execution” on page
Table 10-19
83.
shows the possible
“Instruction width
84.
SAM3N
84.
95

Related parts for SAM3N0B