Creo que te he entendido...
De ser asi.... tal vez esto te sirva.
setup VAR byte
TRISB=%11101010
inicio:
setup=%00000001
GOSUB ver_setup
pause 300
setup=%00000010
GOSUB ver_setup
Pause 300
setup=%00000100
GOSUB ver_setup
pause 300
goto inicio
ASM
test_setup:
btfsc _setup,0
bsf PORTA,6
btfsc _setup,1
bsf PORTB,7
btfsc _setup,2
bsf PORTB,6
btfsc _setup,3
bsf PORTB,5
btfsc _setup,4
bsf PORTB,4
btfsc _setup,5
bsf PORTA,7
btfsc _setup,6
bsf PORTA,2
btfss _setup,0
bcf PORTA,6
btfss _setup,1
bcf PORTB,7
btfss _setup,2
bcf PORTB,6
btfss _setup,3
bcf PORTB,5
btfss _setup,4
bcf PORTB,4
btfss _setup,5
bcf PORTA,7
btfss _setup,6
bcf PORTA,2
ret
ENDASM
Claro esta que de esta manera te sirve mas, ya que podrias configurar los 7 Estados de Setup.
Saludos,
Yoel