Structural pointer

xiaoxiao2021-03-06  46

I Kinda Like to Use a little pattern for structures. I Use ECX for the Struct Pointer, EAX for the Data, And IF NEED BE (IE, For A 2nd Struct) I Keep Edx in Reserve. So The Proc Might Go Like SO:

Code: Function proc structaddr: DWORD mov ecx, structaddr mov eax, FirstElementVal mov [ecx] .STRUCTURE.member, eax add ecx, SIZEOF DWORD mov eax, SecondElementVal mov [ecx] .STRUCTURE.member, eax; and so on ret Function ENDP

转载请注明原文地址:https://www.9cbs.com/read-79671.html

New Post(0)