News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

Macros with masm 6.1

Started by georg, September 18, 2013, 01:52:43 AM

Previous topic - Next topic

ggmasm32

i have a question regarding the macro labelling.
I do remember when you declare label inside macro and call it multiple times, assembler will complain for multiple label with same name:

f1 macro param
loop1:
     ; do something
     jmp loop1
     endm

Now from main.asm call it twice and you get error


f1 param1
f1 param2

There was a special directive that generates different label suffix or prefix for each macro call, i cant recall, does someone remember?
Thanks.,

jj2007

f1 macro param
LOCAL loop1
loop1:
     ; do something
     jmp loop1
     endm

ggmasm32