can any one tell me differenc between the two, iam realy confused about it for example following code snippet
lets say is n1=5 and n2=3, wat would be the result if its btfsc/btfss
NUM1: EQU 0x20
NUM2: EQU 0x21
Test: CLRF PortB
MOVF NUM1, w
SUBWF NUM2,w
BTFSS Status, c
GOTO CASE1
BTFSS Status, z
GOTO CASE2
CASE0: BSF PortB, 0
GOTO EXTPOINT
CASE1: BSF PortB, 1
GOTO EXTPOINT
CASE2: BSF PortB, 2
GOTO EXTPOINT
lets say is n1=5 and n2=3, wat would be the result if its btfsc/btfss
NUM1: EQU 0x20
NUM2: EQU 0x21
Test: CLRF PortB
MOVF NUM1, w
SUBWF NUM2,w
BTFSS Status, c
GOTO CASE1
BTFSS Status, z
GOTO CASE2
CASE0: BSF PortB, 0
GOTO EXTPOINT
CASE1: BSF PortB, 1
GOTO EXTPOINT
CASE2: BSF PortB, 2
GOTO EXTPOINT