{"height":"190","provider_url":"https://hatena.blog","version":"1.0","url":"https://kernhack.hatenablog.com/entry/20100228/1267324598","published":"2010-02-28 11:36:38","blog_url":"https://kernhack.hatenablog.com/","blog_title":"\u03c6(\u30fb\u30fb*)\u309e \uff73\uff70\uff9d\u3000\u30ab\u30fc\u30cd\u30eb\u3068\u304b\u5f04\u3063\u305f\u308a\u306e\u30e1\u30e2","type":"rich","title":"eflags\u306e\u5024\u3092\u8aad\u307f\u51fa\u3059","width":"100%","image_url":null,"provider_name":"Hatena Blog","description":"rip/eip\u3068\u540c\u69d8\u306b\u3061\u3087\u3063\u3068\u3057\u305f\u624b\u9806\u304c\u5fc5\u8981\uff0e #include <iostream> int main(int argc, char **argv) { unsigned long eflags = 0; __asm__ __volatile__ (\"pushf\\n\\t\" \"popq %%rax\\n\\t\" \"movq %%rax, %0\\n\\t\" :\"=m\"(eflags)); std::cout << \"eflags is \" << std::hex << std::showbase << eflags << std::endl; return 0; }","author_name":"masami256","author_url":"https://blog.hatena.ne.jp/masami256/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkernhack.hatenablog.com%2Fentry%2F20100228%2F1267324598\" title=\"eflags\u306e\u5024\u3092\u8aad\u307f\u51fa\u3059 - \u03c6(\u30fb\u30fb*)\u309e \uff73\uff70\uff9d\u3000\u30ab\u30fc\u30cd\u30eb\u3068\u304b\u5f04\u3063\u305f\u308a\u306e\u30e1\u30e2\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","categories":["c++"]}