I'm writting a very simple macro.

The macro has one argument.
I have to tell constant argument from variable argument.

In example,

I have to distinguish these.
(My macro name is 'MYMACRO'.)

1) MYMACRO 1234h (Constant)
2) MYMACRO eax (Variable)

Thank you for reading!
Have a nice day! :)
Posted on 2002-08-05 09:08:54 by nyam
You want to use OPATTR, look here:
http://www.sxlist.com/techref/language/masm/masmc09.htm
...it is towards the end of the Chapter.
[u]Bit Set If expression[/u]

0 = References a code label
1 = Is a memory variable or has a relocatable data label
2 = Is an immediate value
3 = Uses direct memory addressing
4 = Is a register value
5 = References no undefined symbols and is without error
6 = Is relative to SS
7 = References an external label
Test bit 2 then bit 4 and you will know.
Posted on 2002-08-05 09:17:10 by bitRAKE
OPATTR works fine!!!

Thanks bitrake!!! :)
Posted on 2002-08-05 20:19:52 by nyam