# NOT
# One's Complement Negation
Opcode | Mnemonic | Description |
---|---|---|
F6 /2 | NOT r/m8 | Reverse each bit of r/m8. |
F7 /2 | NOT r/m16 | Reverse each bit of r/m16. |
F7 /2 | NOT r/m32 | Reverse each bit of r/m32. |
# Description
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.
This instruction can be used with a LOCK prefix to allow the instruction to be executed atomically.
# Operation
Destination = ~Destination;
1
2
2
# Flags affected
None.
# Protected Mode Exceptions
# Real-Address Mode Exceptions
#GP | If a memory operand effective address is outside the CS, DS, ES, FS, or GS segment limit. |
#GP | If a memory operand effective address is outside the CS, DS, ES, FS, or GS segment limit. |
# Virtual-8086 Mode Exceptions
Instruction | Latency | Throughput | Execution Unit |
---|---|---|---|
CPUID | 0F3n/0F2n | 0F3n/0F2n | 0F2n |
NOT | 1/0.5 | 0.5/0.5 | ALU |