<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.cheatengine.org/index.php?action=history&amp;feed=atom&amp;title=Assembler%3ACommands%3AXADD</id>
	<title>Assembler:Commands:XADD - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.cheatengine.org/index.php?action=history&amp;feed=atom&amp;title=Assembler%3ACommands%3AXADD"/>
	<link rel="alternate" type="text/html" href="https://wiki.cheatengine.org/index.php?title=Assembler:Commands:XADD&amp;action=history"/>
	<updated>2026-05-19T22:20:52Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.32.0</generator>
	<entry>
		<id>https://wiki.cheatengine.org/index.php?title=Assembler:Commands:XADD&amp;diff=5757&amp;oldid=prev</id>
		<title>OldCheatEngineUser: 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…'</title>
		<link rel="alternate" type="text/html" href="https://wiki.cheatengine.org/index.php?title=Assembler:Commands:XADD&amp;diff=5757&amp;oldid=prev"/>
		<updated>2018-02-04T00:41:29Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;#039;&lt;a href=&quot;/index.php?title=Category:Assembler&quot; title=&quot;Category:Assembler&quot;&gt;Category:Assembler&lt;/a&gt; &amp;#039;&amp;#039;&amp;#039;command&amp;#039;&amp;#039;&amp;#039; xadd &amp;#039;&amp;#039;destination, source&amp;#039;&amp;#039;  Exchange and add the source with/to the destination.  The &amp;#039;&amp;#039;&amp;#039;CF&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;PF&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;AF&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;SF&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;ZF&amp;#039;&amp;#039;&amp;#039;, and…&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Category:Assembler]]&lt;br /&gt;
'''command''' xadd ''destination, source''&lt;br /&gt;
&lt;br /&gt;
Exchange and add the source with/to the destination.&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;padding:2px;border:1px dashed #2f6fab;background-color:#f4f4f4;&amp;quot;&amp;gt;&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
This instruction can be used with a LOCK prefix to allow the instruction to be executed atomically.&lt;br /&gt;
&lt;br /&gt;
[https://c9x.me/x86/html/file_module_x86_id_327.html c9x.me/x86/html/file_module_x86_id_327.html]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Command Parameters ===&lt;br /&gt;
{|width=&amp;quot;85%&amp;quot; cellpadding=&amp;quot;10%&amp;quot; cellpadding=&amp;quot;5%&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;0&amp;quot;&lt;br /&gt;
!align=&amp;quot;left&amp;quot;|Parameter&lt;br /&gt;
!style=&amp;quot;width: 80%;background-color:white;&amp;quot; align=&amp;quot;left&amp;quot;|Description&lt;br /&gt;
|-&lt;br /&gt;
|destination&lt;br /&gt;
|r8-m8 / r16-m16 / r32-m32&lt;br /&gt;
|-&lt;br /&gt;
|source&lt;br /&gt;
|r8 / r16 / r32&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
&lt;br /&gt;
 xadd dl,ah&lt;br /&gt;
&lt;br /&gt;
 xadd [edx+110],al // byte value&lt;br /&gt;
&lt;br /&gt;
 xadd ax,dx&lt;br /&gt;
&lt;br /&gt;
 xadd [eax+10],dx // word value&lt;br /&gt;
&lt;br /&gt;
 xadd edx,eax&lt;br /&gt;
&lt;br /&gt;
 xadd [esi],edi // dword value&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{AssemblerCommandSeeAlso}}&lt;br /&gt;
&lt;br /&gt;
== External links ==&lt;br /&gt;
* [https://c9x.me/x86/ c9x.me/x86/]&lt;br /&gt;
* [http://ref.x86asm.net/ ref.x86asm.net]&lt;br /&gt;
* [https://wikipedia.org/wiki/X86_instruction_listings wikipedia.org/wiki/X86_instruction_listings]&lt;/div&gt;</summary>
		<author><name>OldCheatEngineUser</name></author>
		
	</entry>
</feed>