> > Hello people Hello right back at you... > > Sorry to bother you all again but i have a question there hope you can > help me... > > > BTFSC PORTD,0 > Can I relpace the 0 with a memory address??? > BTFSC PORTD,PIN > Where pin is a ram location... Nope. We just had this same discussion less than a week ago, and partially in just the last day or two with Scott's PortA question. The bit number is fixed. A couple of possible ways of solving the problem: 1. Map the bit number in PIN into a bit mask by using an 8 instruction jump table. Then take the bit mask and test it against PORTD. 2. make a copy of PORTD and rotate the desired bit into a known bit location like bit 0, or the carry bit. Then test the known bit. Hope this helps, BAJ