> I'm having a bit of trouble seeing how you declare local variables in > macros. blahblah macro local . . . endm > Obviously you can't use labels in a MACRO with countdown loops caus > you genearte a duplicate label error if you invoke it twice. You can if you declare them local to the macro as above. > The MPASM guide shows how you declare a local variable wth a fixed > value but is it possible to declare one to take care of the jump > address within a loop? say you wanted a label called "rotate" on the > bsf PORTB line? what to do? I can't make sense of what you are asking here. If you want to see examples of local symbols used in macros, take a look at STD.INS.ASPIC at http://www.embedinc.com/pic. ******************************************************************** Olin Lathrop, embedded systems consultant in Littleton Massachusetts (978) 742-9014, olin@embedinc.com, http://www.embedinc.com -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu