flat assembler
Message board for the users of flat assembler.
Index
> Macroinstructions > macro for arg. |
Author |
|
DimonSoft 26 Jul 2020, 18:09
Code: macro PutVal V1*, V2*, V3*, Addr { match any , Addr \{ mov eax, Addr \} mov dword [eax], V1 mov dword [eax + 4], V2 mov dword [eax + 8], V3 add eax, 12 } I wrote this directly in browser but it should work. You may also want to check for mov eax, eax case, etc. I doubt such macros are of large usefulness though. |
|||
26 Jul 2020, 18:09 |
|
Roman 26 Jul 2020, 18:33
Thanks ! Work
Question. Why need write V1* ? |
|||
26 Jul 2020, 18:33 |
|
DimonSoft 26 Jul 2020, 18:45
It is not mandatory. But this makes FASM ensure that something non-empty is passed as this parameter. See Section 2.3.3 for details.
|
|||
26 Jul 2020, 18:45 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.