EasyManuals Logo

ST STM32H757 User Manual

ST STM32H757
262 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #142 background imageLoading...
Page #142 background image
The STM32 Cortex-M4 instruction set PM0214
142/262 PM0214 Rev 10
3.9.4 Branch and control instructions
Table 33 shows the branch and control instructions:
3.9.5 B, BL, BX, and BLX
Branch instructions.
Syntax
B{cond} label
BL{cond} label
BX{cond} Rm
BLX{cond} Rm
Where:
• ‘B’ is branch (immediate).
• ‘BL’ is branch with link (immediate).
• ‘BX’ is branch indirect (register).
• ‘BLX’ is branch indirect with link (register).
• ‘cond’ is an optional condition code, see Conditional execution on page 65.
• ‘label’ is a PC-relative expression. See PC-relative expressions on page 65.
• ‘Rm’ is a register that indicates an address to branch to. Bit[0] of the value in Rm must
be 1, but the address to branch to is created by changing bit[0] to 0.
Operation
All these instructions cause a branch to label, or to the address indicated in Rm. In addition:
• The BL and BLX instructions write the address of the next instruction to LR (the link
register, R14).
• The BX and BLX instructions cause a UsageFault exception if bit[0] of Rm is 0.
Table 33. Branch and control instructions
Mnemonic Brief description See
BBranch B, BL, BX, and BLX on page 142
BL Branch with Link B, BL, BX, and BLX on page 142
BLX Branch indirect with Link B, BL, BX, and BLX on page 142
BX Branch indirect B, BL, BX, and BLX on page 142
CBNZ
Compare and Branch if Non
Zero
CBZ and CBNZ on page 144
CBZ
Compare and Branch if Non
Zero
CBZ and CBNZ on page 144
IT If-Then IT on page 145
TBB Table Branch Byte TBB and TBH on page 147
TBH Table Branch Halfword TBB and TBH on page 147

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the ST STM32H757 and is the answer not in the manual?

ST STM32H757 Specifications

General IconGeneral
BrandST
ModelSTM32H757
CategoryComputer Hardware
LanguageEnglish

Related product manuals