Hi! How can I write the following code in a macro : ---------- #DEFINE pin0 PORTB, 0 bcf pin0 ---------- Writing : macro0 MACRO what_pin bcf what_pin ENDM and then using #DEFINE pin0 PORTB, 0 macro0 pin0 will give me an error by the assembler : Symbol not previously defined (what_pin) I'm trying to build a more flexible serial routine in a macro and I'm stuck with this trying to specify it as parameter what pin from what port is the RX input. ===== ing. Andrei Boros Centrul pt. Tehnologia Informatiei Societatea Romana de Radiodifuziune __________________________________________________ Do You Yahoo!? Great stuff seeking new owners in Yahoo! Auctions! http://auctions.yahoo.com -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics