You copied the Doc URL to your clipboard.

ARM Compiler armasm User Guide : CBZ

CBZ

Compare and Branch on Zero.

Syntax

CBZ Wt, label ; 32-bit general registers

CBZ Xt, label ; 64-bit general registers

Where:

Wt

Is the 32-bit name of the general-purpose register to be tested.

Xt

Is the 64-bit name of the general-purpose register to be tested.

label

Is the program label to be conditionally branched to. Its offset from the address of this instruction, in the range ±1MB.

Usage

Compare and Branch on Zero compares the value in a register with zero, and conditionally branches to a label at a PC-relative offset if the comparison is equal. It provides a hint that this is not a subroutine call or return. This instruction does not affect condition flags.

Was this page helpful? Yes No