flat assembler
Message board for the users of flat assembler.
Index
> Macroinstructions > Need Help on Macro Instruction |
Author |
|
l_inc 19 Dec 2013, 11:57
3ric
Code: macro put offset,[val*] { common local cntr cntr = offset forward mov dword[ebp+cntr],val cntr = cntr+4 } _________________ Faith is a superposition of knowledge and fallacy |
|||
19 Dec 2013, 11:57 |
|
3ric 19 Dec 2013, 12:16
thank you so much l_inc
|
|||
19 Dec 2013, 12:16 |
|
baldr 19 Dec 2013, 12:41
3ric,
For extra flexibility it can be rewritten as follows: Code: macro put offset,[val*] { common local delta delta = 0 forward mov dword [ebp+offset+delta], val delta = delta+4 } |
|||
19 Dec 2013, 12:41 |
|
l_inc 19 Dec 2013, 13:40
baldr wrote: Then you can use something like ... Good point. As always, however. _________________ Faith is a superposition of knowledge and fallacy |
|||
19 Dec 2013, 13:40 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.