SAM3A8C Atmel Corporation, SAM3A8C Datasheet - Page 107

no-image

SAM3A8C

Manufacturer Part Number
SAM3A8C
Description
Manufacturer
Atmel Corporation
Datasheets
11.12.6.3
11.12.6.4
11.12.6.5
11.12.6.6
11.12.7
11.12.7.1
11057A–ATARM–17-Feb-12
11057A–ATARM–17-Feb-12
LDM
STMDB
STM
LDM
PUSH and POP
Restrictions
Condition flags
Examples
Incorrect examples
Syntax
R8,{R0,R2,R9}
R1!,{R3-R6,R11,R12}
R5!,{R5,R4,R9} ; Value stored for R5 is unpredictable
R2, {}
The accesses happen in order of decreasing register numbers, with the highest numbered regis-
ter using the highest memory address and the lowest number register using the lowest memory
address. If the writeback suffix is specified, the value of Rn - 4 * (n-1) is written back to Rn.
The PUSH and POP instructions can be expressed in this form. See
107
In these instructions:
When PC is in reglist in an LDM instruction:
These instructions do not change the flags.
Push registers onto, and pop registers off a full-descending stack.
where:
cond
reglist
It must be comma separated if it contains more than one register or register range.
PUSH and POP are synonyms for STMDB and LDM (or LDMIA) with the memory addresses for
the access based on SP, and with the final address for the access written back to the SP. PUSH
and POP are the preferred mnemonics in these cases.
• Rn must not be PC
• reglist must not contain SP
• in any STM instruction, reglist must not contain PC
• in any LDM instruction, reglist must not contain PC if it contains LR
• reglist must not contain Rn if you specify the writeback suffix.
• bit[0] of the value loaded to the PC must be 1 for correct execution, and a branch occurs to
• if the instruction is conditional, it must be the last instruction in the IT block.
this halfword-aligned address
PUSH{cond} reglist
POP{cond} reglist
for details.
; There must be at least one register in the list
is an optional condition code, see
is a non-empty list of registers, enclosed in braces. It can contain register ranges.
; LDMIA is a synonym for LDM
“Conditional execution” on page
“PUSH and POP” on page
SAM3X/A
SAM3X/A
96.
107
107

Related parts for SAM3A8C