|
|||||||||||
|
Technical Support On-Line Manuals Assembler User Guide |
AND
10.14 ANDLogical AND. Syntaxwhere:
OperationThe
AND instruction performs bitwise
AND operations on the values in Rn and Operand2.In certain circumstances, the assembler can substitute
BIC for AND, or AND for BIC. Be aware of this when reading
disassembly listings.Use of PC in Thumb instructionsYou cannot use PC (
R15) for Rd or any operand with the
AND instruction.Use of PC and SP in ARM instructionsYou can use PC and SP with the
AND ARM
instruction but this is deprecated in ARMv6T2 and above.If you use PC as
Rn, the
value used is the address of the instruction plus 8.If you use PC as
Rd:
You cannot use PC for any operand in any data processing instruction
that has a register-controlled shift.
Condition flagsIf S is specified, the
AND instruction:
16-bit instructionsThe following forms of this instruction are available in Thumb
code, and are 16-bit instructions:
It does not matter if you specify
AND{S} . The instruction is the same.Examples
AND r9,r2,#0xFF00
ANDS r9, r8, #0x19
| ||||||||||
|
|||||||||||
Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.