Thumb Instruction Reference
5-32
Copyright © 2000, 2001 ARM Limited. All rights reserved.
ARM DUI 0068B
5.4.1
B
Branch. This is the only instruction in the Thumb instruction set that can be conditional.
Syntax
B{
cond
}
label
where:
cond
is an optional condition code (see Table 5-2 on page 5-33).
label
is a program-relative expression. This is usually a label within the same
piece of code. See
Register-relative and program-relative expressions
on
page 3-23 for more information.
label
must be within:
•
–252 to +258 bytes of the current instruction, if
cond
is used
•
±
2KB if the instruction is unconditional.
Usage
The
B
instruction causes a branch to
label
, if
cond
is satisfied, or if
cond
is not used.
Note
label
must be within the specified limits. The ARM linker cannot add code to generate
longer branches.
Architectures
This instruction is available in all T variants of the ARM architecture.
Examples
B dloop
BEQ sectB
Содержание Developer Suite
Страница 10: ...Preface x Copyright 2000 2001 ARM Limited All rights reserved ARM DUI 0068B ...
Страница 110: ...Assembler Reference 3 32 Copyright 2000 2001 ARM Limited All rights reserved ARM DUI 0068B ...
Страница 185: ...ARM Instruction Reference ARM DUI 0068B Copyright 2000 2001 ARM Limited All rights reserved 4 75 Example MSR CPSR_f r5 ...
Страница 238: ...Thumb Instruction Reference 5 44 Copyright 2000 2001 ARM Limited All rights reserved ARM DUI 0068B ...
Страница 282: ...Vector Floating point Programming 6 44 Copyright 2000 2001 ARM Limited All rights reserved ARM DUI 0068B ...
Страница 360: ...Index Index 6 Copyright 2000 2001 ARM Limited All rights reserved ARM DUI 0068B ...