Hey RedHat,
You can include more than one instruction if the condition is true using BTFSS by jumping to some subprogram
BTFSS PORTB,0
call code1
call code2
BTFSS will test bit 0 of PORTB, call code1 if bit0==0,but the return instruction in the end of code1 will load the program counter with the address of the "call code2" insturction.The previous code is modified now by adding a user defined variable TEST.code1 will set bit0 of TEST before return.The program can skip "call code2" now like this :
BCF TEST,0
BTFSS PORTB,0
call code1
BTFSS TEST,0 ; was code1 executed? skip if yes,
call code2 ; execute code2 if not
BCF TEST,0
.
.
.
;-----------------------------------
code1
.
.
.
BSF TEST,0
return
;------------------------------------
code2
.
.
return
Regards