flat assembler
Message board for the users of flat assembler.
Index
> Compiler Internals > FASM's -d cmdline option |
Author |
|
revolution 21 Feb 2008, 05:30
I haven't tried it but I imagine that "-d ?IMP=anything" is the same as doing "define ?IMP" at the first line in the source?
|
|||
21 Feb 2008, 05:30 |
|
Japheth 21 Feb 2008, 05:38
revolution wrote: I haven't tried it but I imagine that "-d ?IMP=anything" is the same as doing "define ?IMP" at the first line in the source? Yes. Apparently it isn't really a problem with the -d option, it's more a problem with the '#' operator in macros, because the "extrn name" uses the externally defined name, but 'imp__#name' ignores it. |
|||
21 Feb 2008, 05:38 |
|
Tomasz Grysztar 21 Feb 2008, 10:24
See manual, section 2.3.7 for explanations.
|
|||
21 Feb 2008, 10:24 |
|
Tomasz Grysztar 04 Mar 2008, 06:16
In other words, you just need to use "match" directive in order to concatenate the value of symbolic constant to some other value:
Code: macro defext name { extrn name match realname,name \{ public __imp__ \# realname __imp__# name dd realname \} } You may find also these articles interesting, the are planned to become the part of Understanding fasm (which also may be helpful to explain how the # operator works). |
|||
04 Mar 2008, 06:16 |
|
Japheth 04 Mar 2008, 11:06
Tomasz Grysztar wrote: In other words, you just need to use "match" directive in order to concatenate the value of symbolic constant to some other value: using match directive does the job, thanks! btw, the availability of the -d option makes a -q option (to suppress the display of the "logo" and the "passes") useful now. |
|||
04 Mar 2008, 11:06 |
|
Tomasz Grysztar 04 Mar 2008, 11:07
Japheth wrote: btw, the availability of the -d option makes a -q option (to suppress the display of the "logo" and the "passes") useful now. No problem. |
|||
04 Mar 2008, 11:07 |
|
rugxulo 04 Mar 2008, 14:31
[quote="Japheth"]
btw, the availability of the -d option makes a -q option (to suppress the display of the "logo" and the "passes") useful now. [/quote] How so? (BTW, thanks to Tomasz for helping him.) |
|||
04 Mar 2008, 14:31 |
|
Japheth 04 Mar 2008, 16:28
Quote:
Because -q is the only option which you can get by mirroring -d. |
|||
04 Mar 2008, 16:28 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.