I need someone to explain this to me. As I understand it, __LOCAL_SIZE is the total size of all local variables in a naked function, like the one I've got here:
I'm not sure how many bytes in size an int is on my machine, but I'm certain it's not 204 - my disassembler says otherwise. Is it taking into account stri as well? Or am I misunderstanding it.Code:_declspec(naked) int StringLen(char* stri) { int l; _asm { push ebp mov ebp, esp sub esp, __LOCAL_SIZE mov esp, ebp pop ebp xor eax, eax ret } }
(Yes, I know the function hasn't been written yet.)



LinkBack URL
About LinkBacks



