https://wiki.cheatengine.org/index.php?title=Assembler:Commands:XADD&feed=atom&action=historyAssembler:Commands:XADD - Revision history2024-03-29T06:54:16ZRevision history for this page on the wikiMediaWiki 1.32.0https://wiki.cheatengine.org/index.php?title=Assembler:Commands:XADD&diff=5757&oldid=prevOldCheatEngineUser: Created page with 'Category:Assembler '''command''' xadd ''destination, source'' Exchange and add the source with/to the destination. The '''CF''', '''PF''', '''AF''', '''SF''', '''ZF''', and…'2018-02-04T00:41:29Z<p>Created page with '<a href="/index.php?title=Category:Assembler" title="Category:Assembler">Category:Assembler</a> '''command''' xadd ''destination, source'' Exchange and add the source with/to the destination. The '''CF''', '''PF''', '''AF''', '''SF''', '''ZF''', and…'</p>
<p><b>New page</b></p><div>[[Category:Assembler]]<br />
'''command''' xadd ''destination, source''<br />
<br />
Exchange and add the source with/to the destination.<br />
<br />
The '''CF''', '''PF''', '''AF''', '''SF''', '''ZF''', and '''OF''' flags are set according to the result of the addition, which is stored in the destination operand.<br />
<br />
<br />
<div style="padding:2px;border:1px dashed #2f6fab;background-color:#f4f4f4;"><br />
Exchanges the first operand (destination operand) with the second operand (source operand), then loads the sum of the two values into the destination operand. The destination operand can be a register or a memory location; the source operand is a register.<br />
<br />
This instruction can be used with a LOCK prefix to allow the instruction to be executed atomically.<br />
<br />
[https://c9x.me/x86/html/file_module_x86_id_327.html c9x.me/x86/html/file_module_x86_id_327.html]<br />
</div><br />
<br />
<br />
=== Command Parameters ===<br />
{|width="85%" cellpadding="10%" cellpadding="5%" cellspacing="0" border="0"<br />
!align="left"|Parameter<br />
!style="width: 80%;background-color:white;" align="left"|Description<br />
|-<br />
|destination<br />
|r8-m8 / r16-m16 / r32-m32<br />
|-<br />
|source<br />
|r8 / r16 / r32<br />
|}<br />
<br />
<br />
== Examples ==<br />
<br />
xadd dl,ah<br />
<br />
xadd [edx+110],al // byte value<br />
<br />
xadd ax,dx<br />
<br />
xadd [eax+10],dx // word value<br />
<br />
xadd edx,eax<br />
<br />
xadd [esi],edi // dword value<br />
<br />
<br />
<br />
{{AssemblerCommandSeeAlso}}<br />
<br />
== External links ==<br />
* [https://c9x.me/x86/ c9x.me/x86/]<br />
* [http://ref.x86asm.net/ ref.x86asm.net]<br />
* [https://wikipedia.org/wiki/X86_instruction_listings wikipedia.org/wiki/X86_instruction_listings]</div>OldCheatEngineUser