xadd
Exchange and Add
XADD r/m, r
Exchanges dest and src, then loads sum into dest.
Details
The Exchange and Add instruction exchanges dest and src, then loads sum into dest.
Pseudocode Operation
// Exchanges dest and src, then loads sum into dest
Example
XADD rbx, rax
Encoding
Binary Layout
0F
+0
C1
+1
Operands
-
dest
Register or memory operand -
src
General-purpose register