negate instruction NEG

GDB shows “neg” instruction

  or     $0xffffffffffffffff,%eax
  jmp    0x7f94f7fce0d0
  mov    0x296e5f(%rip),%rax        # 0x7f94f8264f98
  neg    %edx
  mov    %edx,%fs:(%rax)
  or     $0xffffffffffffffff,%eax
  jmp    0x7f94f7fce10f
End of assembler dump.
(gdb)

0x00007f94f7fce139 : neg %edx

Process Involved

software : gnome-panel.
The launcher and docking facility for GNOME

Explanation

The neg (negate) instruction takes the two's complement of a byte or
word. It takes a single (destination) operation and negates it. The
syntax for this instruction is
		neg	dest

It computes the following:
		dest := 0 - dest

source: http://www.arl.wustl.edu/~lockwood/class/cs306/books/
           artofasm/Chapter_6/CH06-2.html
 

Leave a Reply

Your email address will not be published. Required fields are marked *