<?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%3ABSWAP</id>
	<title>Assembler:Commands:BSWAP - 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%3ABSWAP"/>
	<link rel="alternate" type="text/html" href="https://wiki.cheatengine.org/index.php?title=Assembler:Commands:BSWAP&amp;action=history"/>
	<updated>2026-04-04T21:34:57Z</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:BSWAP&amp;diff=5755&amp;oldid=prev</id>
		<title>OldCheatEngineUser: Created page with 'Category:Assembler '''command''' bswap ''operand''  The bswap instruction reverse the byte order of the destination. Its used to convert values from Little-Endian to Big-Endi…'</title>
		<link rel="alternate" type="text/html" href="https://wiki.cheatengine.org/index.php?title=Assembler:Commands:BSWAP&amp;diff=5755&amp;oldid=prev"/>
		<updated>2018-02-04T00:14:57Z</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; bswap &amp;#039;&amp;#039;operand&amp;#039;&amp;#039;  The bswap instruction reverse the byte order of the destination. Its used to convert values from Little-Endian to Big-Endi…&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''' bswap ''operand''&lt;br /&gt;
&lt;br /&gt;
The bswap instruction reverse the byte order of the destination. Its used to convert values from Little-Endian to Big-Endian.&lt;br /&gt;
&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;
Reverses the byte order of a 32-bit / 64-Bit (destination) register. This instruction is provided for converting little-endian values to big-endian format and vice versa.&lt;br /&gt;
&lt;br /&gt;
To swap bytes in a word value (16-bit register), use the XCHG instruction. When the BSWAP instruction references a 16-bit register, the result is undefined.&lt;br /&gt;
&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;
|operand&lt;br /&gt;
|The operand to reverse byte order on&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
&lt;br /&gt;
 bswap eax&lt;br /&gt;
&lt;br /&gt;
 bswap edx&lt;br /&gt;
&lt;br /&gt;
 bswap rax&lt;br /&gt;
&lt;br /&gt;
 bswap rdx&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{AssemblerCommandSeeAlso}}&lt;br /&gt;
&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>