Hello everyone, I have a simple test code like this: ;----------------------------- org 0x00 goto start org 0x04 goto start include p16f876.inc #define pin1 portb, 0 #define pin2 portb, 1 test macro pin bsf pin endm start test pin1 end ;----------------------------- What I want to do is to pass either pin1 or pin2 to the macro and have the macro set this pin port (the actual macro is a lot more complex than this!). The program does not compile. Please tell me where my problem is and how I can workaround this problem. Thanks for your help! Regards, Thomas -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads