flat assembler
Message board for the users of flat assembler.
Index
> Macroinstructions > macro proc problem |
Author |
|
LocoDelAssembly 15 Aug 2011, 23:55
Code: proc NameProc uses ebx esi edi, Arg mov eax, [Arg] lea eax, [eax + WIN32_FIND_DATA.cFileName] ; Or "add eax, WIN32_FIND_DATA.cFileName" ret endp |
|||
15 Aug 2011, 23:55 |
|
Mike Gonta 16 Aug 2011, 08:01
marcinzabrze12 wrote: Is ther other way to get it if I don't remember a value of numerical constant this field of structure ??? Code: include 'macro/masm.inc' all EQU ebx ecx edx edi esi ; simple equate for "uses" proc NameProc uses all, Arg assume eax:WIN32_FIND_DATA mov eax, [Arg] lea eax, [eax.cFileName] ret endp |
|||
16 Aug 2011, 08:01 |
|
Mike Gonta 16 Aug 2011, 08:04
marcinzabrze12 wrote: Is ther other way to get it if I don't remember a value of numerical constant this field of structure ??? Code: include 'macro/masm.inc' all EQU ebx ecx edx edi esi ; simple equate for "uses" proc NameProc uses all, Arg assume eax:WIN32_FIND_DATA mov eax, [Arg] lea eax, [eax.cFileName] ret endp |
|||
16 Aug 2011, 08:04 |
|
marcinzabrze12 16 Aug 2011, 09:00
@LocoDelAssembly: It's exactly what i need know: WIN32_FIND_DATA.cFileName = 44
@Mike Gonta: I can't understand "assume" - Makes what this instruction ? |
|||
16 Aug 2011, 09:00 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.