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.

Assembler syntax<br />

CB{N}Z , <br />

where:<br />

Instruction Details<br />

N If specified, causes the branch to occur when the contents of are nonzero (encoded as<br />

op = 1). If omitted, causes the branch to occur when the contents of are zero (encoded<br />

as op = 0).<br />

See St<strong>and</strong>ard assembler syntax fields on page A8-7. A CBZ or CBNZ instruction must be<br />

unconditional.<br />

The oper<strong>and</strong> register.<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 CB{N}Z instruction to this label, then selects an<br />

encoding that sets imm32 to that offset. Permitted offsets are even numbers in the range 0 to<br />

126.<br />

Operation<br />

EncodingSpecificOperations();<br />

if nonzero ^ IsZero(R[n]) then<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-67

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

Saved successfully!

Ooh no, something went wrong!