05.02.2013 Views

ARM Architecture Reference Manual ARMv7-A and ARMv7-R edition

ARM Architecture Reference Manual ARMv7-A and ARMv7-R edition

ARM Architecture Reference Manual ARMv7-A and ARMv7-R edition

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Related encodings See Branches <strong>and</strong> miscellaneous control on page A6-20<br />

Assembler syntax<br />

B <br />

where:<br />

See St<strong>and</strong>ard assembler syntax fields on page A8-7.<br />

Note<br />

Instruction Details<br />

Encodings T1 <strong>and</strong> T3 are conditional in their own right, <strong>and</strong> do not require an IT instruction<br />

to make them conditional.<br />

For encodings T1 <strong>and</strong> T3, must not be AL or omitted. The 4-bit encoding of the condition<br />

is placed in the instruction <strong>and</strong> not in a preceding IT instruction, <strong>and</strong> the instruction must not<br />

be in an IT block. As a result, encodings T1 <strong>and</strong> T2 are never both available to the assembler,<br />

nor are encodings T3 <strong>and</strong> T4.<br />

The label of the instruction that is to be branched to. The assembler calculates the required<br />

value of the offset from the PC value of the B instruction to this label, then selects an<br />

encoding that sets imm32 to that offset.<br />

Permitted offsets are:<br />

Encoding T1 Even numbers in the range –256 to 254<br />

Encoding T2 Even numbers in the range –2048 to 2046<br />

Encoding T3 Even numbers in the range –1048576 to 1048574<br />

Encoding T4 Even numbers in the range –16777216 to 16777214<br />

Encoding A1 Multiples of 4 in the range –33554432 to 33554428.<br />

Operation<br />

if ConditionPassed() then<br />

EncodingSpecificOperations();<br />

BranchWritePC(PC + imm32);<br />

Exceptions<br />

None.<br />

<strong>ARM</strong> DDI 0406B Copyright © 1996-1998, 2000, 2004-2008 <strong>ARM</strong> Limited. All rights reserved. A8-45

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!