{"published":"2010-10-24 03:44:51","categories":["\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0"],"width":"100%","author_url":"https://blog.hatena.ne.jp/rofi/","type":"rich","url":"https://rofi.hatenadiary.org/entry/20101024/1287945891","author_name":"rofi","title":"\u7d9a\u30fbmemset\u3092\uff08\u81ea\u5206\u3082\uff09\u4f5c\u3063\u3066\u307f\u305f","image_url":null,"description":"DWORD\u5358\u4f4d\u3067\u30b3\u30d4\u30fc \u4f55\u4eba\u304b\u304b\u3089\u6307\u6458\u304c\u5165\u3063\u305f\u306e\u3067\u524d\u56de\u306ememset\u30924\u30d0\u30a4\u30c8\u5358\u4f4d\u3067\u30b3\u30d4\u30fc\u3059\u308b\u3088\u3046\u306b\u3057\u307e\u3057\u305f\u3002 #include <stdio.h> #include <string.h> #include <assert.h> __declspec( naked ) void *_memset( void *s, int c, size_t n ) { __asm { PUSH EDI ; cdecl\u3067\u306fEDI\u306f\u6f70\u3057\u3061\u3083\u30c0\u30e1\u3089\u3057\u3044\u306e\u3067\u9000\u907f MOV EDI, [ESP+08h] ; void *s MOV EAX, [ESP+0Ch] ; int c MOV ECX, [ESP+10h] ; \u2026","version":"1.0","blog_title":"\u685c\u82b1\u306a\u65e5\u3005","provider_url":"https://hatena.blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Frofi.hatenadiary.org%2Fentry%2F20101024%2F1287945891\" title=\"\u7d9a\u30fbmemset\u3092\uff08\u81ea\u5206\u3082\uff09\u4f5c\u3063\u3066\u307f\u305f - \u685c\u82b1\u306a\u65e5\u3005\" 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","blog_url":"https://rofi.hatenadiary.org/","height":"190"}