neg
Two's Complement Negation
NEG r/m
Negates value (0 - operand).
Details
The Two's Complement Negation instruction negates value (0 - operand).
Pseudocode Operation
DEST <- 0 - DEST
// Flags affected: OF, SF, ZF, AF, CF, PF
Example
NEG rbx
Encoding
Binary Layout
F7
+0
ModRM
+1
Operands
-
dest
Register or memory operand