Difference between revisions of "Assembler:Commands:NOT"
Jump to navigation
Jump to search
(Undo revision 5175 by TheyCallMeTim13 (Talk)) |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 4: | Line 4: | ||
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 28: | Line 29: | ||
== Examples == | == Examples == | ||
− | not al | + | not al |
− | not ax | + | not ax |
− | not ax | + | not ax |
− | not eax | + | not eax |
− | not rax | + | not rax |
− | not | + | not al |
− | not | + | not ax |
− | not | + | not ax |
− | not | + | not eax |
− | not | + | not rax |
− | not [eax] | + | not [eax] |
− | not [rax] | + | not [rax] |
− | not [00123ABC] | + | not [00123ABC] |
− | not [SomeSymbol] | + | not [SomeSymbol] |
{{AssemblerCommandSeeAlso}} | {{AssemblerCommandSeeAlso}} | ||
{{Template:AssemblerCommandExternalLinks}} | {{Template:AssemblerCommandExternalLinks}} |
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.
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]