UM10503
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2012. All rights reserved.
User manual
Rev. 1.3 — 6 July 2012
1213 of 1269
49.1 How to read this chapter
Details of the ARM Cortex-M0 and ARM Cortex-M4 specification can be found in the
following documents:
•
Cortex-M4 Devices Generic User Guide
•
Cortex-M0 Devices Generic User Guide
49.2 Cortex-M4 instruction set summary
shows the Cortex-M4 instruction set with the following abbreviations to
calculate the number of cycles:
•
P = The number of cycles required for a pipeline refill. This ranges from 1 to 3
depending on the alignment and width of the target instruction, and whether the
processor manages to speculate the address early.
•
B = The number of cycles required to perform the barrier operation. For DSB and
DMB, the minimum number of cycles is zero. For ISB, the minimum number of cycles
is equivalent to the number required for a pipeline refill.
•
N = The number of registers in the register list to be loaded or stored, including PC or
LR.
•
W = The number of cycles spent waiting for an appropriate event.
UM10503
Chapter 49: LPC43xx ARM Cortex M0/M4 reference
Rev. 1.3 — 6 July 2012
User manual
Table 1083.Cortex-M4 instruction set summary
Operation
Description
Assembler
Cycles
Move
Register
MOV Rd, <op2>
1
16-bit immediate
MOVW Rd, #<imm>
1
Immediate into top
MOVT Rd, #<imm>
1
To PC
MOV PC, Rm
1 + P
Add
Add
ADD Rd, Rn, <op2>
1
Add to PC
ADD PC, PC, Rm
1 + P
Add with carry
ADC Rd, Rn, <op2>
1
Form address
ADR Rd, <label>
1
Subtract
Subtract
SUB Rd, Rn, <op2>
1
Subtract with borrow
SBC Rd, Rn, <op2>
1
Reverse
RSB Rd, Rn, <op2>
1