John Considine wrote: > I am trying to have a variable be decremented and that result be used > as the BTFSC test bit This is a VFAQ. There is no bit pointer function on the PIC or AFAIK *any* microcontroller. Tony's reply noted; but I suspect you don't really need, possibly even want, to read PORTB each time. Would this not do?: movlw 8 movwf TestBit ; count from 8 movf PORTB,W movwf shiftr ; copy of PORTB nexbit: btfsc shiftr,7 ; test MSB goto bitset ; the bit denoted by TestBit is set rlf shiftr ; roll the bits decfsz TestBit,F ; look at next bit goto nexbit noneset: ; fall through if none set. bitset: ; the bit denoted by TestBit is set If you use 0 and 1 rather than W and F for the "destination" you are really *asking* for trouble! -- Cheers, Paul B.