Syntax: AND {<cond>}{S} <destination>, <operand1>, <operand2>
Operation: destination = operand one AND operand two
Flags: N,Z,(C)
This operation performs a logical bitwise AND operation between its two operands, with the result being placed in the destination register.
Examples:
AND R0,R1,R2 ; R0 = R1 AND R2
AND R5,R5,#%1111 ; R5 = R5 AND %1111 (clear all but low 4 bits)
ANDS R4,R4,#1 ; R4 = R4 AND 1 (setting flags)
|
|
|