
{"id":2125,"date":"2010-07-22T19:29:09","date_gmt":"2010-07-22T13:59:09","guid":{"rendered":"http:\/\/www.jeffrin.in\/?p=2125"},"modified":"2010-07-22T19:29:09","modified_gmt":"2010-07-22T13:59:09","slug":"sub-subtract","status":"publish","type":"post","link":"https:\/\/www.trueangle.org\/index.php\/2010\/07\/22\/sub-subtract\/","title":{"rendered":"SUB &#8211; Subtract"},"content":{"rendered":"<h3> | SUB instruction | <\/h3>\n<pre>\n(gdb) disass\nDump of assembler code for function *__GI___poll:\n   0x00007fc50ab670b0 :\tsub    $0x28,%rsp\n   0x00007fc50ab670b4 :\tmov    0x29c52e(%rip),%eax        # 0x7fc50ae035e8 \n   0x00007fc50ab670ba :\ttest   %eax,%eax\n   0x00007fc50ab670bc :\tjne    0x7fc50ab670d5 \n   0x00007fc50ab670be :\tmovslq %edx,%rdx\n   0x00007fc50ab670c1 :\tmov    $0x7,%eax\n   0x00007fc50ab670c6 :\tsyscall\n=&gt; 0x00007fc50ab670c8 :\tcmp    $0xfffffffffffff000,%rax\n   0x00007fc50ab670ce :\tja     0x7fc50ab67121 \n   0x00007fc50ab670d0 :\tadd    $0x28,%rsp\n   0x00007fc50ab670d4 :\tretq\n   0x00007fc50ab670d5 :\tmov    %edx,0x8(%rsp)\n   0x00007fc50ab670d9 :\tmov    %rsi,0x10(%rsp)\n<\/pre>\n<p><\/p>\n<h4> sub    $0x28(value at memory 0x28) ,%rsp(value at 64 bit general purpose register) <\/h4>\n<p><\/p>\n<h4> Process Involved <\/h4>\n<pre>\n$ping gnu.org\nPING gnu.org (199.232.41.10) 56(84) bytes of data.\n<\/pre>\n<p><\/p>\n<h4> Explanation <\/h4>\n<pre>\nUsage: SUB dest,src\nThe source is subtracted from the destination and the result is\nstored in the destination.\n\nsource  : http:\/\/www.penguin.cz\/~literakl\/intel\/s.html#SUB\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>| SUB instruction | (gdb) disass Dump of assembler code for function *__GI___poll: 0x00007fc50ab670b0 : sub $0x28,%rsp 0x00007fc50ab670b4 : mov 0x29c52e(%rip),%eax # 0x7fc50ae035e8 0x00007fc50ab670ba : test %eax,%eax 0x00007fc50ab670bc : jne 0x7fc50ab670d5 0x00007fc50ab670be : movslq %edx,%rdx 0x00007fc50ab670c1 : mov $0x7,%eax 0x00007fc50ab670c6 : syscall =&gt; 0x00007fc50ab670c8 : cmp $0xfffffffffffff000,%rax 0x00007fc50ab670ce : ja 0x7fc50ab67121 0x00007fc50ab670d0 : add $0x28,%rsp &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.trueangle.org\/index.php\/2010\/07\/22\/sub-subtract\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;SUB &#8211; Subtract&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[811,950,955,1035,1508,1511,1715],"_links":{"self":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/2125"}],"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=2125"}],"version-history":[{"count":0,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/2125\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/media?parent=2125"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/categories?post=2125"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/tags?post=2125"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}