SB, SC, SZ

 

SB        bit                Skip if bit


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

 

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

 

Coding:        BTFSS                bit

 

Note:        Only one word is skipped by this instruction. To avoid strange results, make sure that any instruction following SB 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

 

 

SC                        Skip if carry


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

 

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

 

Coding:        BTFSS                3,0

 

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

 

 

SZ                        Skip if zero


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

 

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

 

Coding:        BTFSS                3,2

 

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