
{"id":2217,"date":"2010-07-27T00:13:15","date_gmt":"2010-07-26T18:43:15","guid":{"rendered":"http:\/\/www.jeffrin.in\/?p=2217"},"modified":"2010-07-27T00:13:15","modified_gmt":"2010-07-26T18:43:15","slug":"jump-if-equal","status":"publish","type":"post","link":"https:\/\/www.trueangle.org\/index.php\/2010\/07\/27\/jump-if-equal\/","title":{"rendered":"Jump if Equal :)"},"content":{"rendered":"<h4> je instruction <\/h4>\n<pre>\n(gdb) disass\nDump of assembler code for function fputs_unlocked:\n   0xb7788c30 :\tpush   %ebp\n   0xb7788c31 :\tmov    %esp,%ebp\n   0xb7788c33 :\tsub    $0x1c,%esp\n   0xb7788c36 :\tmov    %ebx,-0xc(%ebp)\n   0xb7788c39 :\tcall   0xb773daaf\n   0xb7788c3e :\tadd    $0xe13b6,%ebx\n   0xb7788c44 :\tmov    %edi,-0x4(%ebp)\n=&gt; 0xb7788c47 :\tmov    0x8(%ebp),%edi\n   0xb7788c4a :\tmov    %esi,-0x8(%ebp)\n   0xb7788c4d :\tmov    0xc(%ebp),%esi\n   0xb7788c50 :\tmov    %edi,(%esp)\n   0xb7788c53 :\tcall   0xb779a530\n   0xb7788c58 :\tmov    %eax,%edx\n   0xb7788c5a :\tmov    -0x10c(%ebx),%eax\n   0xb7788c60 :\ttest   %eax,%eax\n   0xb7788c62 :\tje     0xb7788cbb \n   0xb7788c64 :\tmov    0x68(%esi),%eax\n   0xb7788c67 :\ttest   %eax,%eax\n   0xb7788c69 :\tje     0xb7788c88 \n   0xb7788c6b :\tcmp    $0xffffffff,%eax\n   0xb7788c6e :\tje     0xb7788c8f \n   0xb7788c70 :\tmov    $0xffffffff,%eax\n<\/pre>\n<h4> je     0xb7788cbb  <\/h4>\n<p><\/p>\n<h4> Process Involved <\/h4>\n<pre>\n$ yes 1\n.\n.\n1\n1\n1\n1\n1\n1\n1\n.\n.\n<\/pre>\n<p><\/p>\n<h4> Explanation <\/h4>\n<pre>\nThe Jump if Equal (je) instruction jumps if the zero flag is set.\n\nsource : http:\/\/stackoverflow.com\/questions\/147173\/x86-assembly-testl-eax-against-eax\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>je instruction (gdb) disass Dump of assembler code for function fputs_unlocked: 0xb7788c30 : push %ebp 0xb7788c31 : mov %esp,%ebp 0xb7788c33 : sub $0x1c,%esp 0xb7788c36 : mov %ebx,-0xc(%ebp) 0xb7788c39 : call 0xb773daaf 0xb7788c3e : add $0xe13b6,%ebx 0xb7788c44 : mov %edi,-0x4(%ebp) =&gt; 0xb7788c47 : mov 0x8(%ebp),%edi 0xb7788c4a : mov %esi,-0x8(%ebp) 0xb7788c4d : mov 0xc(%ebp),%esi 0xb7788c50 : mov &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.trueangle.org\/index.php\/2010\/07\/27\/jump-if-equal\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Jump if Equal :)&#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":[832,950,979,985,1035],"_links":{"self":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/2217"}],"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=2217"}],"version-history":[{"count":0,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/2217\/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=2217"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/categories?post=2217"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/tags?post=2217"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}