Hello
Pls help little noobie struggling with fasm (not fasmg) macros...
Am having hard time trying to build macro to parse symbol starting with dot ('.') :
basically i wud like to pass param such as : .somelabel (note the leading dot .),
to some macro and strip out the leading dot internally to keep only the trailing part,
i.e. only 'somelabel'.
Can't find a way around this.
typ., e.g.:
----
macro dummy param {
match =.arg, param \{
arg equ foo
\}
}
dummy .somelabel
----
=> compiles but does not work : symbolic constant doesn't get defined
Desperate to find a way around this...
(i have tried a number of other alternatives .. with no more luck)
Would any of you experts out there pls kindly help me with this... ?
Tx
for ref. same thing using leading colon ':' i/o dot '.' works perfectly :
----
macro dummy param {
match =:arg, param \{
arg equ foo
\}
}
dummy :somelabel
----
=> this correctly define symbolic constant 'somelabel' with value = foo
Tx
Regards
|