does anyone have or know how to write a macro/subroutine that will work exactly like the #define and #undefine command. it should work like this: #define nisse portb,5 and then you could use the "nisse" to do the following: bcf nisse ;this should change portb pin 5 to a zero. bsf nisse ;this should change portb pin 5 to a one. it should be possible to change port pin and port in the subroutine. and then, after a call to the subroutine, be able to work with a variable of some kind like "nisse" hope you understand what I mean. //nabil