{"blog_title":"\u51ac\u306e\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u6d77\u5cb8","image_url":null,"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftkmr.hatenablog.com%2Fentry%2F2015%2F08%2F29%2F221315\" title=\"asm\u3067\u30b9\u30de\u30fc\u30c8\u306b\u6587\u5b57\u5217\u306e\u9577\u3055\u3092\u7b97\u51fa\u3059\u308b - \u51ac\u306e\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u6d77\u5cb8\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_name":"Hatena Blog","provider_url":"https://hatena.blog","width":"100%","blog_url":"https://tkmr.hatenablog.com/","published":"2015-08-29 22:13:15","description":"\u6587\u5b57\u5217\u306e\u9577\u3055\u3092\u7b97\u51fa \u4ee5\u4e0b\u306easm\u30b3\u30fc\u30c9(x64)\u3067\u3001\u6587\u5b57\u5217\u306e\u9577\u3055\u3092\u53d6\u5f97\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3002 mov eax, 0x0 mov rcx, 0xffffffffffffffff repnz scas al, BYTE PTR es:[rdi] not rcx lea rcx, [rcx - 1] // dec rcx\u3067\u3082\u53efx86\u304c\u3044\u3044\u4eba\u306f\u9069\u5b9c\u8aad\u307f\u304b\u3048\u3066\u6b32\u3057\u3044\u3002 \u89e3\u8aac repnz/repne\u306fcmps\u3001 scas\u547d\u4ee4\u306b\u4ed8\u52a0\u3055\u308c\u308b\u30d7\u30ea\u30d5\u30a3\u30c3\u30af\u30b9\u3067\u3001(r,e)cx\u30ec\u30b8\u30b9\u30bf\u3092\u30ab\u30a6\u30f3\u30bf\u3068\u3057\u3066\u4f7f\u7528\u3057\u3001\u30ab\u30a6\u30f3\u30bf\u304c0\u306b\u306a\u308b\u304b ZF\u30d5\u30e9\u30b0\u304c1\u306b\u306a\u308b\u307e\u3067\u7e70\u308a\u8fd4\u3059\u3068\u3044\u3046\u3082\u306e\u3067\u3042\u308b\u3002repeat not zero\u3068\u8aad\u3081\u3070\u899a\u2026","type":"rich","categories":["asm"],"url":"https://tkmr.hatenablog.com/entry/2015/08/29/221315","title":"asm\u3067\u30b9\u30de\u30fc\u30c8\u306b\u6587\u5b57\u5217\u306e\u9577\u3055\u3092\u7b97\u51fa\u3059\u308b","height":"190","author_name":"TAKEmaru","version":"1.0","author_url":"https://blog.hatena.ne.jp/TAKEmaru/"}