Electronic Components Datasheet Search
  British  ▼
ALLDATASHEET.CO.UK

X  

PM0056 Datasheet(PDF) 92 Page - STMicroelectronics

Part # PM0056
Description  This programming manual provides information
PDF  156 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

PM0056 Datasheet(HTML) 92 Page - STMicroelectronics

Back Button PM0056 Datasheet HTML 88Page - STMicroelectronics PM0056 Datasheet HTML 89Page - STMicroelectronics PM0056 Datasheet HTML 90Page - STMicroelectronics PM0056 Datasheet HTML 91Page - STMicroelectronics PM0056 Datasheet HTML 92Page - STMicroelectronics PM0056 Datasheet HTML 93Page - STMicroelectronics PM0056 Datasheet HTML 94Page - STMicroelectronics PM0056 Datasheet HTML 95Page - STMicroelectronics PM0056 Datasheet HTML 96Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 92 / 156 page
background image
The Cortex-M3 instruction set
PM0056
92/156
DocID15491 Rev 5
3.8.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 57.
‘label’ is a PC-relative expression. See PC-relative expressions on page 56.
‘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.
B cond label is the only conditional instruction that can be either inside or outside an IT
block. All other branch instructions must be conditional inside an IT block, and must be
unconditional outside the IT block, see IT on page 94.
Table 31 shows the ranges for the various branch instructions.
You might have to use the .W suffix to get the maximum branch range. See Instruction width
selection on page 59.
Table 31. Branch ranges
Instruction
Branch range
B label
−16 MB to +16 MB
Bcond label (outside IT block)
−1 MB to +1 MB
Bcond label (inside IT block)
−16 MB to +16 MB
BL{cond} label
−16 MB to +16 MB
BX{cond} Rm
Any value in register
BLX{cond} Rm
Any value in register



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com