2016-12-18から1日間の記事一覧

HARDCODED msvc++ 関数のサイズを調べる

#include "stdafx.h" #define FUNC_GARBAGE \ __asm _emit 0xEB \ __asm _emit 0xEC \ __asm _emit 0xED \ __asm _emit 0xEF \ __declspec(naked) int __cdecl print_char() { __asm { push ebp mov ebp,esp sub esp, __LOCAL_SIZE push ebx push edi push e…