Difference between revisions of "Assembler:Commands:NOT"

From Cheat Engine
Jump to navigation Jump to search
(Undo revision 5175 by TheyCallMeTim13 (Talk))
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
[[Category:Assembler]]
 
'''command''' not ''operand''
 
'''command''' not ''operand''
  
 
The NOT instruction implements the bitwise NOT operation. NOT operation reverses the bits in an operand. The operand could be either in a register or in the memory.
 
The NOT instruction implements the bitwise NOT operation. NOT operation reverses the bits in an operand. The operand could be either in a register or in the memory.
 
  operand = !operand
 
  operand = !operand
 +
operand = ~operand
 
Example:
 
Example:
 
  |              operand:    0101 0011 |
 
  |              operand:    0101 0011 |
Line 12: Line 14:
 
Performs a bitwise NOT operation (each 1 is set to 0, and each 0 is set to 1) on the destination operand and stores the result in the destination operand location. The destination operand can be a register or a memory location.
 
Performs a bitwise NOT operation (each 1 is set to 0, and each 0 is set to 1) on the destination operand and stores the result in the destination operand location. The destination operand can be a register or a memory location.
  
[http://x86.renejeschke.de/html/file_module_x86_id_218.html x86.renejeschke.de/html/file_module_x86_id_218.html]
+
[http://c9x.me/x86/html/file_module_x86_id_218.html c9x.me/x86/html/file_module_x86_id_218.html]
 
</div>
 
</div>
  
Line 23: Line 25:
 
|operand
 
|operand
 
|The operand to perform a bitwise operation on
 
|The operand to perform a bitwise operation on
|-
 
|source
 
|The source operand
 
 
|}
 
|}
  
  
 
== Examples ==
 
== Examples ==
  not al,1
+
  not al
  
  not ax,1
+
  not ax
  
  not ax,1
+
  not ax
  
  not eax,1
+
  not eax
  
  not rax,1
+
  not rax
  
  not al,al
+
  not al
  
  not ax,ax
+
  not ax
  
  not ax,ax
+
  not ax
  
  not eax,eax
+
  not eax
  
  not rax,rax
+
  not rax
  
  not [eax],eax
+
  not [eax]
  
  not [rax],rax
+
  not [rax]
  
  not [00123ABC],eax
+
  not [00123ABC]
  
  not [SomeSymbol],rax
+
  not [SomeSymbol]
  
== 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 22:31, 17 January 2018

command not operand

The NOT instruction implements the bitwise NOT operation. NOT operation reverses the bits in an operand. The operand could be either in a register or in the memory.

operand = !operand
operand = ~operand

Example:

|              operand:    0101 0011 |
|------------------------------------|
| After NOT -> operand:    1010 1100 |


Performs a bitwise NOT operation (each 1 is set to 0, and each 0 is set to 1) on the destination operand and stores the result in the destination operand location. The destination operand can be a register or a memory location.

c9x.me/x86/html/file_module_x86_id_218.html


Command Parameters[edit]

Parameter Description
operand The operand to perform a bitwise operation on


Examples[edit]

not al
not ax
not ax
not eax
not rax
not al
not ax
not ax
not eax
not rax
not [eax]
not [rax]
not [00123ABC]
not [SomeSymbol]

See also[edit]

External links[edit]