not

8086 and later

One's Complement Negation

not r/m8 | not r/m16 | not r/m32 | not r/m64 | not [reg8], r/m8 | not [reg16], r/m16 | not [reg32], r/m32 | not [reg64], r/m64 | not kreg8, kreg8 | not kreg16, kreg16 | not kreg32, kreg32 | not kreg64, kreg64

NEG replaces the contents of its operand by the two's complement negation (invert all the bits and then add one) of the original value. NOT, similarly, performs one's complement (inverts all the bits).

Loading...

Forms

Every form of not the assembler accepts, from NASM's own instruction table. The second column is the processor that introduced the form; a badge marks a form that needs an extension, that is lockable, or that long mode dropped.

FormSinceNotes
not r/m88086lock
not r/m168086lock
not r/m32386lock
not r/m64x86-64locklong
not [reg8], r/m8x86-64apxlocklong
not [reg16], r/m16x86-64apxlocklong
not [reg32], r/m32x86-64apxlocklong
not [reg64], r/m64x86-64apxlocklong
not kreg8, kreg8recentavx512dq
not kreg16, kreg16recentavx512f
not kreg32, kreg32recentavx512bw
not kreg64, kreg64recentavx512bw