
{"id":2355,"date":"2010-08-07T21:53:20","date_gmt":"2010-08-07T16:23:20","guid":{"rendered":"http:\/\/www.jeffrin.in\/?p=2355"},"modified":"2010-08-07T21:53:20","modified_gmt":"2010-08-07T16:23:20","slug":"negate-instruction-neg","status":"publish","type":"post","link":"https:\/\/www.trueangle.org\/index.php\/2010\/08\/07\/negate-instruction-neg\/","title":{"rendered":"negate instruction  NEG"},"content":{"rendered":"<h4> GDB shows &#8220;neg&#8221; instruction <\/h4>\n<pre>\n  or     $0xffffffffffffffff,%eax\n  jmp    0x7f94f7fce0d0 \n  mov    0x296e5f(%rip),%rax        # 0x7f94f8264f98\n  neg    %edx\n  mov    %edx,%fs:(%rax)\n  or     $0xffffffffffffffff,%eax\n  jmp    0x7f94f7fce10f \nEnd of assembler dump.\n(gdb)\n<\/pre>\n<p><\/p>\n<h4> 0x00007f94f7fce139 :\tneg    %edx<\/h4>\n<p><\/p>\n<h4> Process Involved <\/h4>\n<pre>\nsoftware : gnome-panel.\nThe launcher and <a>docking<\/a> facility for <a>GNOME<\/a>\n<\/pre>\n<p><\/p>\n<h4> Explanation <\/h4>\n<pre>\nThe neg (negate) instruction takes the two's complement of a byte or\nword. It takes a single (destination) operation and negates it. The\nsyntax for this instruction is\n\t\tneg\tdest\n\nIt computes the following:\n\t\tdest := 0 - dest\n\nsource: http:\/\/www.arl.wustl.edu\/~lockwood\/class\/cs306\/books\/\n           artofasm\/Chapter_6\/CH06-2.html\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>GDB shows &#8220;neg&#8221; 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&#8217;s complement of a byte or word. &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.trueangle.org\/index.php\/2010\/08\/07\/negate-instruction-neg\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;negate instruction  NEG&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":-1,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[567,811,950,1035,1152],"_links":{"self":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/2355"}],"collection":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/comments?post=2355"}],"version-history":[{"count":0,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/2355\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/"}],"wp:attachment":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/media?parent=2355"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/categories?post=2355"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/tags?post=2355"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}