revolution wrote: |
But you might want to add brackets to ensure you get what you want because they are textual equates.
|
|
For this reason it would be better to not use preprocessor at all for this purpose, just regular labels:
Code: |
label Arg1 at ebp+8
label Arg2 at Arg1+4
label Arg3 at Arg2+4
|
|
Alternatively, if you needed preprocessor's variables in order to be able to re-define them, they can be used to be just "links" to actual assembly-time symbols:
Code: |
struc redefinable value
{
local a
label a at value
. equ a
}
Arg1 redefinable ebp+8
Arg2 redefinable Arg1+4
Arg3 redefinable Arg2+4
|
|
PS. With fasmg plain "=" could be used for the same purpose. It was never allowed in fasm 1, though it was not really because of any technical limitation.