CSB, CSBE

NOTE: These items have been discontinued for a long time.
We no longer support these products or offer alternatives.

We retain these pages so that users can see what their existing tools support and to provide download links to the final documentation and software versions. We have a few replacement parts left, but not many. Available items have an 'ADD to CART' or 'Buy Now' button next to them. Otherwise they are not available.

logo has a few items in stock as well.

 

CSB        fr,#literal        Compare fr to literal and skip if below


Words:        3        Cycles:        3 or 4 (skip)        Affects:        C, DC, Z

 

Operation:        Fr is compared to literal via W. If fr is less than literal, the following instruction word is skipped.

 

Coding:        MOVLW                literal

       SUBWF                fr,0

       BTFSC                3,0

 

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

 

 

CSB        fr1,fr2        Compare fr1 to fr2 and skip if below


Words:        3        Cycles:        3 or 4 (skip)        Affects:        C, DC, Z

 

Operation:        Fr1 is compared to fr2via W. If fr1 is less than fr2, the following instruction word is skipped.

 

Coding:        MOVF                fr2,0

       SUBWF                fr1,0

       BTFSC                3,0

 

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

 

 

CSBE        fr,#literal        Compare fr to literal and skip if below or equal


Words:        3        Cycles:        3 or 4 (skip)        Affects:        C, DC, Z

 

Operation:        Fr is compared to literal via W. If fr is less than or equal to literal, the following instruction word is skipped.

 

Coding:        MOVLW                literal

       ADDWF                fr,0

       BTFSC                3,0

 

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

 

 

CSBE        fr1,fr2        Compare fr1 to fr2 and skip if below or equal


Words:        3        Cycles:        3 or 4 (skip)        Affects:        C, DC, Z

 

Operation:        Fr1 is compared to fr2 via W. If fr1 is less than or equal to fr2, the following instruction word is skipped.

 

Coding:        MOVF                fr1,0

       SUBWF                fr2,0

       BTFSS                3,0

 

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