
{"id":2926,"date":"2010-07-15T23:45:59","date_gmt":"2010-07-15T18:15:59","guid":{"rendered":"http:\/\/www.jeffrin.in\/?p=2029"},"modified":"2010-07-15T23:45:59","modified_gmt":"2010-07-15T18:15:59","slug":"push-instruction-push-rbx","status":"publish","type":"post","link":"https:\/\/www.trueangle.org\/index.php\/2010\/07\/15\/push-instruction-push-rbx\/","title":{"rendered":"push instruction.. push %rbx"},"content":{"rendered":"<h3> | push instruction | <\/h3>\n<pre>\n(gdb) disass\nDump of assembler code for function _IO_default_uflow:\n   0x00007f7c1e9964d0 :\tmov    0xd8(%rdi),%rax\n=&gt; 0x00007f7c1e9964d7 :\tpush   %rbx\n   0x00007f7c1e9964d8 :\tmov    %rdi,%rbx\n   0x00007f7c1e9964db :\tcallq  *0x20(%rax)\n   0x00007f7c1e9964de :\tcmp    $0xffffffffffffffff,%eax\n   0x00007f7c1e9964e1 :\tje     0x7f7c1e9964f2 \n   0x00007f7c1e9964e3 :\tmov    0x8(%rbx),%rdx\n   0x00007f7c1e9964e7 :\tmovzbl (%rdx),%eax\n   0x00007f7c1e9964ea :\tadd    $0x1,%rdx\n   0x00007f7c1e9964ee :\tmov    %rdx,0x8(%rbx)\n   0x00007f7c1e9964f2 :\tpop    %rbx\n   0x00007f7c1e9964f3 :\tretq\nEnd of assembler dump.\n(gdb)\n\nrbx is the 64 bit equivelant for ebx register\n\nPUSH instruction pushes  a value onto  the stack.\nHere i think push instruction pushes the value of rbx register\non to the stack.\n\n\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>| push instruction | (gdb) disass Dump of assembler code for function _IO_default_uflow: 0x00007f7c1e9964d0 : mov 0xd8(%rdi),%rax =&gt; 0x00007f7c1e9964d7 : push %rbx 0x00007f7c1e9964d8 : mov %rdi,%rbx 0x00007f7c1e9964db : callq *0x20(%rax) 0x00007f7c1e9964de : cmp $0xffffffffffffffff,%eax 0x00007f7c1e9964e1 : je 0x7f7c1e9964f2 0x00007f7c1e9964e3 : mov 0x8(%rbx),%rdx 0x00007f7c1e9964e7 : movzbl (%rdx),%eax 0x00007f7c1e9964ea : add $0x1,%rdx 0x00007f7c1e9964ee : mov %rdx,0x8(%rbx) 0x00007f7c1e9964f2 &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.trueangle.org\/index.php\/2010\/07\/15\/push-instruction-push-rbx\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;push instruction.. push %rbx&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":2034,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[22],"tags":[567,950,1326,1461,1480],"_links":{"self":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/2926"}],"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=2926"}],"version-history":[{"count":0,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/2926\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/media\/2034"}],"wp:attachment":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/media?parent=2926"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/categories?post=2926"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/tags?post=2926"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}