Difference between revisions of "Assembler:Commands:NOT"
Jump to navigation
Jump to search
(Created page with ''''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 …') |
|||
Line 2: | Line 2: | ||
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 |
Example: | Example: | ||
| operand: 0101 0011 | | | operand: 0101 0011 | |
Revision as of 08:36, 14 March 2017
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
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
Parameter | Description |
---|---|
operand | The operand to perform a bitwise operation on |
source | The source operand |
Examples
not al,1
not ax,1
not ax,1
not eax,1
not rax,1
not al,al
not ax,ax
not ax,ax
not eax,eax
not rax,rax
not [eax],eax
not [rax],rax
not [00123ABC],eax
not [SomeSymbol],rax