You copied the Doc URL to your clipboard.

ARM Compiler armasm User Guide : ANDS (immediate)

ANDS (immediate)

Bitwise AND (immediate), setting flags.

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

Syntax

ANDS Wd, Wn, #imm ; 32-bit general registers

ANDS Xd, Xn, #imm ; 64-bit general registers

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.

Xd

Is the 64-bit name of the general-purpose destination register.

Xn

Is the 64-bit name of the general-purpose source register.

imm

Is the bitmask immediate.

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