FETCHAND
Operation
Atomically ANDs source with memory and returns the old memory value in the source register.
Assembler Syntax
FETCHAND.{B|W|L|Q}(z)/order(o) Rn(s), <ea>(e)
Privilege
Unprivileged
Atomically replaces the memory operand with the selected-width bitwise conjunction of the old memory value and the source, and returns the old memory value in the source register.
2.75in
Encodings
FETCHAND.{B|W|L|Q}(z)/order(o) Rn(s), <ea>(e)
Format: Instruction format for FETCHAND.{B|W|L|Q}(z)/order(o) Rn(s), <ea>(e)
order — allowed: 0x0..0x4 [memory_order_reserved_reclaimed]
memory — excluded: immediate [memory_operand_required]