UM10429
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2010. All rights reserved.
User manual
Rev. 1 — 20 October 2010
220 of 258
NXP Semiconductors
UM10429
Chapter 19: Appendix LPC1102 ARM Cortex-M0 reference
•
For BX and BLX, bit[0] of
Rm
must be 1 for correct execution. Bit[0] is used to update
the EPSR T-bit and is discarded from the target address.
Remark:
B
cond
is the only conditional instruction on the Cortex-M0 processor.
19.4.6.1.4
Condition flags
These instructions do not change the flags.
19.4.6.1.5
Examples
B
loopA
; Branch to loopA
BL
funC
; Branch with link (Call) to function funC, return address
; stored in LR
BX
LR
; Return from function call
BLX
R0
; Branch with link and exchange (Call) to a address stored
; in R0
BEQ
labelD ; Conditionally branch to labelD if last flag setting
; instruction set the Z flag, else do not branch.
19.4.7 Miscellaneous instructions
shows the remaining Cortex-M0 instructions:
Table 211. Miscellaneous instructions
Mnemonic
Brief description
See
BKPT
Breakpoint
CPSID
Change Processor State, Disable Interrupts
CPSIE
Change Processor State, Enable Interrupts
DMB
Data Memory Barrier
DSB
Data Synchronization Barrier
ISB
Instruction Synchronization Barrier
MRS
Move from special register to register
MSR
Move from register to special register
NOP
No Operation
SEV
Send Event