Difference between revisions of "Assembler:Commands:MOV"

From Cheat Engine
Jump to navigation Jump to search
(Created page with ''''command''' mov ''mnemonic'' ''destination'', ''source'' Sets the destination to the source. === Command Parameters === {|width="85%" cellpadding="10%" cellpadding="5%" cell…')
 
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
'''command''' mov ''mnemonic'' ''destination'', ''source''
+
[[Category:Assembler]]
 +
'''command''' mov ''size'' ''destination'', ''source''
  
 
Sets the destination to the source.
 
Sets the destination to the source.
 +
 +
 +
<div style="padding:2px;border:1px dashed #2f6fab;background-color:#f4f4f4;">
 +
Copies the second operand (source operand) to the first operand (destination operand).
 +
The source operand can be an immediate value, general-purpose register, segment register, or memory location;
 +
the destination register can be a general-purpose register, segment register, or memory location.
 +
Both operands must be the same size, which can be a byte, a word, or a doubleword.
 +
 +
[http://c9x.me/x86/html/file_module_x86_id_176.html c9x.me/x86/html/file_module_x86_id_176.html]
 +
</div>
  
  
Line 9: Line 20:
 
!style="width: 80%;background-color:white;" align="left"|Description
 
!style="width: 80%;background-color:white;" align="left"|Description
 
|-
 
|-
|mnemonic '''OPTIONAL'''
+
|size '''OPTIONAL'''
 
|The size of the operand to move (based on registery size if not given)
 
|The size of the operand to move (based on registery size if not given)
 
|-
 
|-
Line 43: Line 54:
 
  mov qword ptr [rax],0
 
  mov qword ptr [rax],0
  
 +
mov rax,SomeSymbol
 +
 +
mov rax,[SomeSymbol]
 +
 +
mov SomeSymbol,rax
 +
 +
mov [SomeSymbol],rax
  
== See also ==
+
{{AssemblerCommandSeeAlso}}
* [[Assembler]]
 
* [[Cheat_Engine:Auto Assembler|Auto Assembler]]
 
* [[Assembler:Commands|Assembler Commands]]
 
  
== External links ==
+
{{Template:AssemblerCommandExternalLinks}}
* [https://wikipedia.org/wiki/X86_instruction_listings wikipedia.org/wiki/X86_instruction_listings]
 
* [https://wikibooks.org/wiki/X86_Assembly/Other_Instructions wikibooks.org/wiki/X86_Assembly/Other_Instructions]
 
* [http://www.asmpedia.org/index.php?title=Main_Page asmpedia.org]
 

Latest revision as of 15:50, 3 January 2018

command mov size destination, source

Sets the destination to the source.


Copies the second operand (source operand) to the first operand (destination operand). The source operand can be an immediate value, general-purpose register, segment register, or memory location; the destination register can be a general-purpose register, segment register, or memory location. Both operands must be the same size, which can be a byte, a word, or a doubleword.

c9x.me/x86/html/file_module_x86_id_176.html


Command Parameters[edit]

Parameter Description
size OPTIONAL The size of the operand to move (based on registery size if not given)
destination The destination operand
source The source operand


Examples[edit]

mov eax,0
mov rax,-1
mov [eax],0x9
mov [rax],1
mov [rax],rsi
mov eax,[rax]
mov rax,[rax]
mov byte ptr [rax],0
mov word ptr [rax],0
mov dword ptr [rax],0
mov qword ptr [rax],0
mov rax,SomeSymbol
mov rax,[SomeSymbol]
mov SomeSymbol,rax
mov [SomeSymbol],rax

See also[edit]

External links[edit]