Ooijen,Wouter van > wrote: > I tried andrew's suggestion: > #define open(x) ((x) macro) > but that does not work (in mpasm V01.50 from MPLAB). > "open(a)" seems to be translated to "(a) macro" or "((a) macro)", > which is not accepted by mpasm as the start of a macro definition. Whoops... Sorry about that, Wouter; I wasn't thinking. > BTW, I can start a macro open (see below), but I can not end a macro > with close! > #define open(name)name macro > #define close endm > ... > open(my_macro) > ; macro body > close > Anyone understands why? Yeah... Now that I've actually tried to do what I said you could do, I see that it's not possible; MPASM doesn't like anything to be #defined to "endm". Sorry for wasting your time. > To rephrase the second part of my question: can a #define macro > translate to multiple lines? No. -Andy === Andrew Warren - fastfwd@ix.netcom.com === Fast Forward Engineering - Vista, California === http://www.geocities.com/SiliconValley/2499 === For PICLIST help (including "unsubscribe" instructions), === put the single word "help" in the body of a message and === send it to: listserv@mitvma.mit.edu