Download Cortex-M0+ Devices Generic User Guide

Transcript
The Cortex-M0+ Instruction Set
Condition flags
These instructions do not change the flags.
Examples
B
BL
BX
BLX
BEQ
ARM DUI 0662A
ID041812
loopA
funC
;
;
;
LR
;
R0
;
;
labelD ;
;
Branch to loopA
Branch with link (Call) to function funC, return address
stored in LR
Return from function call
Branch with link and exchange (Call) to a address stored
in R0
Conditionally branch to labelD if last flag setting
instruction set the Z flag, else do not branch.
Copyright © 2012 ARM. All rights reserved.
Non-Confidential
3-35