Syntax
B <target_address>
where:
<target_address>
Specifies the address to branch to. The branch target address is calculated by:
1. Shifting the 11-bit signed offset of the instruction left one bit.
2. Sign-extending the result to 32 bits.
3. Adding this to the contents of the PC (which contains the address of the branch instruction plus 4).
The instruction can therefore specify a branch of –2048 to +2046 bytes, relative to the current value of the PC (R15).
Architecture version
All T variants.
Exceptions
None.
Operation
PC = PC + (SignExtend(signed_immed_11) << 1)