flat assembler
Message board for the users of flat assembler.
Index
> Windows > assign struct |
Author |
|
typedef 25 Jul 2011, 14:07
Code: push ebx lea ebx,[myLocalStruct] ;since in your case you show that the first field is a byte ; thus it will be mov [ebx],byteValue ; first byte ;OR mov [ebx+MyStruct.FileResourcefirstbyte],byteValue ;for other different members, use their index and size ;IE DWORD mov [ebx+index*4] ;WORD mov [ebx+index*2] ;restore ebx pop ebx |
|||
25 Jul 2011, 14:07 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.