Thank you for the info , I will see how things pan out Regards- David At 03:22 PM 13/08/97 -0700, you wrote: >yes it is easy: >the macros can even take parameters. > >for e.g. the following macro simulates >an 8051 instruction (compare and jump if not equal) >the macro begins with a "macro" declaration and ends with >a "endm" statement. if the "reg" value is not equal >to the constant the program branches to "label". > > >cjne macro reg,constant,label > movlw constant > subwf reg,w > btfss status,zero > goto label > > endm > > > >> >> Is it possible in MPASM to create a #define-macro which translates to >> - multiple lines of 'code', among which >> - a start-of-macro-definition (the "label MACRO parameter,..." type of >> macro) line >> >> I want to create >> #procedure(procname) >> and >> #endproc >> macros which (among other things) store the intervening lines as a macro >> definition. >> >> regards, >> Wouter. >> > >