13.07.2015 Views

Volume 3: General-Purpose and System Instructions - Stanford ...

Volume 3: General-Purpose and System Instructions - Stanford ...

Volume 3: General-Purpose and System Instructions - Stanford ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

24594 Rev. 3.10 February 2005 AMD64 TechnologyXADDExchange <strong>and</strong> AddExchanges the contents of a register (second oper<strong>and</strong>) with the contents of a registeror memory location (first oper<strong>and</strong>), computes the sum of the two values, <strong>and</strong> stores theresult in the first oper<strong>and</strong> location.The forms of the XADD instruction that write to memory support the LOCK prefix.For details about the LOCK prefix, see “Lock Prefix” on page 10.Mnemonic Opcode DescriptionXADD reg/mem8, reg8 0F C0 /rXADD reg/mem16, reg16 0F C1 /rXADD reg/mem32, reg32 0F C1 /rXADD reg/mem64, reg64 0F C1 /rExchange the contents of an 8-bit register with the contents of an8-bit destination register or memory oper<strong>and</strong> <strong>and</strong> load their suminto the destination.Exchange the contents of a 16-bit register with the contents of a16-bit destination register or memory oper<strong>and</strong> <strong>and</strong> load theirsum into the destination.Exchange the contents of a 32-bit register with the contents of a32-bit destination register or memory oper<strong>and</strong> <strong>and</strong> load theirsum into the destination.Exchange the contents of a 64-bit register with the contents of a64-bit destination register or memory oper<strong>and</strong> <strong>and</strong> load theirsum into the destination.Related <strong>Instructions</strong>NoneXADD 287

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!