flat assembler
Message board for the users of flat assembler.
Index
> Main > Confused about FASM macro specifics. |
Author |
|
comrade 07 May 2004, 04:30
Code: macro foo [values] { common db values db "$" } foo 1,2,3 this will generate: 1,2,3,"$" but if you have: Code: macro foo [values] { forward db values db "$" } foo 1,2,3 this will generate: 1,"$",2,"$",3,"$" reverse works similarly: but if you have: Code: macro foo [values] { reverse db values db "$" } foo 1,2,3 this will generate: 3,"$",2,"$",1,"$" so you can see common is processed always only once - for all values at once. but forward and reverse blocks are processed individually for each element in comma-separated parameter |
|||
07 May 2004, 04:30 |
|
ShortCoder 07 May 2004, 04:34
THANK YOU! That was most useful and an absolutely excellent explanation!
|
|||
07 May 2004, 04:34 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.