
{"id":2282,"date":"2010-08-01T17:14:31","date_gmt":"2010-08-01T11:44:31","guid":{"rendered":"http:\/\/www.jeffrin.in\/?p=2282"},"modified":"2010-08-01T17:14:31","modified_gmt":"2010-08-01T11:44:31","slug":"xor-instruction","status":"publish","type":"post","link":"https:\/\/www.trueangle.org\/index.php\/2010\/08\/01\/xor-instruction\/","title":{"rendered":"exclusive OR Instruction :-"},"content":{"rendered":"<h4> GDB shows XOR Instruction <\/h4>\n<p><\/p>\n<pre>\n(gdb) disassemble 0x00007f16db50b647\nDump of assembler code for function gtk_main:\n   0x00007f16db50b5a0 :\tpush   %r15\n   0x00007f16db50b5a2 :\txor    %edi,%edi\n   0x00007f16db50b5a4 :\tmov    $0x1,%esi\n   0x00007f16db50b5a9 :\tpush   %r14\n   0x00007f16db50b5ab :\tpush   %r13\n   0x00007f16db50b5ad :\tpush   %r12\n   0x00007f16db50b5af :\tpush   %rbp\n   0x00007f16db50b5b0 :\tpush   %rbx\n   0x00007f16db50b5b1 :\tsub    $0x38,%rsp\n   0x00007f16db50b5b5 :\taddl   $0x1,0x4e2af4(%rip)        # 0x7f16db9ee0b0\n   0x00007f16db50b5bc :\tcallq  0x7f16db43d9b0 \n   0x00007f16db50b5c1 :\tmov    0x4e2ae0(%rip),%rdi        # 0x7f16db9ee0a8\n   0x00007f16db50b5c8 :\tmov    %rax,%rsi\n<\/pre>\n<p><\/p>\n<h4> Process Involved <\/h4>\n<p><\/p>\n<pre>\nA Telepathy Application.\nIM application and Account Manager called Empathy.\n<\/pre>\n<p><\/p>\n<h4> Explanation <\/h4>\n<pre>\nPerforms a bitwise exclusive OR (XOR) operation on the destination\n(first) and source (second) operands and stores the result in the\ndestination operand location. The source operand can be an immediate,\na register, or a memory location; the destination operand can be a\nregister or a memory location. (However, two memory operands cannot\nbe used in one instruction.) Each bit of the result is 1 if the\ncorresponding bits of the operands are different; each bit is 0 if the\ncorresponding bits are the same.\n\nsource : http:\/\/siyobik.info\/index.php?module=x86&amp;id=330\nsource : http:\/\/en.wikipedia.org\/wiki\/XOR_gate\n\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>GDB shows XOR Instruction (gdb) disassemble 0x00007f16db50b647 Dump of assembler code for function gtk_main: 0x00007f16db50b5a0 : push %r15 0x00007f16db50b5a2 : xor %edi,%edi 0x00007f16db50b5a4 : mov $0x1,%esi 0x00007f16db50b5a9 : push %r14 0x00007f16db50b5ab : push %r13 0x00007f16db50b5ad : push %r12 0x00007f16db50b5af : push %rbp 0x00007f16db50b5b0 : push %rbx 0x00007f16db50b5b1 : sub $0x38,%rsp 0x00007f16db50b5b5 : addl $0x1,0x4e2af4(%rip) # &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.trueangle.org\/index.php\/2010\/08\/01\/xor-instruction\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;exclusive OR Instruction :-&#8220;<\/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":[391,811,1035,1461,1715,1719],"_links":{"self":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/2282"}],"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=2282"}],"version-history":[{"count":0,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/2282\/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=2282"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/categories?post=2282"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/tags?post=2282"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}