cbnz

Compare and Branch Non-Zero (Thumb)

CBNZ <Rn>, <label>

Branches to label if register is not zero (Thumb-only).

Details

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

Pseudocode Operation

IF condition THEN PC ← target

Example

CBNZ r1, label

Encoding

Binary Layout
10111010
i
1
imm5
Rn
 
Format Thumb Branch
Opcode 0xB900
Extension T32 (Thumb)

Operands

  • Rn
    Register
  • label
    Label