cbz

Compare and Branch Zero (Thumb)

CBZ <Rn>, <label>

Branches to label if register is zero (Thumb-only, does not affect flags).

Details

The Compare and Branch Zero instruction branches to label if register is zero (Thumb-only, does not affect flags).

Pseudocode Operation

IF condition THEN PC ← target

Example

CBZ r1, label

Encoding

Binary Layout
10110010
i
1
imm5
Rn
 
Format Thumb Branch
Opcode 0xB100
Extension T32 (Thumb)

Operands

  • Rn
    Register
  • label
    Label