A.5.189 NEG, NOT: Two's and Ones' Complement
NEG r/m8 ; F6 /3 [8086]
NEG r/m16 ; o16 F7 /3 [8086]
NEG r/m32 ; o32 F7 /3 [386]
NOT r/m8 ; F6 /2 [8086]
NOT r/m16 ; o16 F7 /2 [8086]
NOT r/m32 ; o32 F7 /2 [386]
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 ones' complement (inverts all the bits).
The Carry Flag is cleared by NOT. The Zero Flag is set according to
whether the result is zero.