You copied the Doc URL to your clipboard.

ANDS (immediate)

Bitwise AND (immediate), setting flags.

This instruction is used by the alias TST (immediate).

Syntax

ANDS Wd, Wn, #imm ; 32-bit

ANDS Xd, Xn, #imm ; 64-bit

Where:

Wd
Is the 32-bit name of the general-purpose destination register.
Wn
Is the 32-bit name of the general-purpose source register.
imm
The bitmask immediate.
Xd
Is the 64-bit name of the general-purpose destination register.
Xn
Is the 64-bit name of the general-purpose source register.

Operation

Bitwise AND (immediate), setting flags, performs a bitwise AND of a register value and an immediate value, and writes the result to the destination register. It updates the condition flags based on the result.

Rd = Rn AND imm, where R is either W or X.

Was this page helpful? Yes No