SNB, SNC, SNZ

 

SNB        bit                Skip if not bit


Words:        1        Cycles:        1 or 2 (skip)        Affects:        none

 

Operation:        If bit reads 0, the following instruction word is skipped.

 

Coding:        BTFSC                bit

 

Note:        Only one word is skipped by this instruction. To avoid strange results, make sure that any instruction following SNB is a single-word instruction.

 

Note:        The TechTools assemblers define a bit as port.bitposition, as in the following examples:

 

       RA.3 = bit 3 of port A        PortB.0 = bit 0 of port B

 

 

SNC                        Skip if not carry


Words:        1        Cycles:        1 or 2 (skip)        Affects:        none

 

Operation:        If C is 0, the following instruction word is skipped.

 

Coding:        BTFSC                3,0

 

Note:        Only one word is skipped by this instruction. To avoid strange results, make sure that any instruction following SNC is a single-word instruction.

 

 

SNZ                        Skip if not zero


Words:        1        Cycles:        1 or 2 (skip)        Affects:        none

 

Operation:        If Z is 0, the following instruction word is skipped.

 

Coding:        BTFSC                3,2

 

Note:        Only one word is skipped by this instruction. To avoid strange results, make sure that any instruction following SNZ is a single-word instruction.