3-457
INSTRUCTION SET REFERENCE
NOT—One's Complement Negation
Description
This instruction performs a bitwise NOT operation (each 1 is cleared to 0, and each 0 is set to
1) on the destination operand and stores the result in the destination operand location. The desti-
nation operand can be a register or a memory location.
Operation
DEST
<
NOT DEST;
Flags Affected
None.
Protected Mode Exceptions
#GP(0)
If the destination operand points to a nonwritable segment.
If a memory operand effective address is outside the CS, DS, ES, FS, or
GS segment limit.
If the DS, ES, FS, or GS register contains a null segment selector.
#SS(0)
If a memory operand effective address is outside the SS segment limit.
#PF(fault-code)If a page fault occurs.
#AC(0)
If alignment checking is enabled and an unaligned memory reference is
made while the current privilege level is 3.
Real-Address Mode Exceptions
#GP
If a memory operand effective address is outside the CS, DS, ES, FS, or
GS segment limit.
#SS
If a memory operand effective address is outside the SS segment limit.
Opcode
Instruction
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