|
CSA fr,#literal Compare fr to literal and skip if above Words: 3 Cycles: 3 or 4 (skip) Affects: C, DC, Z
Operation: Fr is compared to literal via W. If fr is greater than literal, the following instruction word is skipped.
Coding: MOVLW literal ADDWF fr,0 BTFSS 3,0
Note: Only one word is skipped by this instruction. To avoid strange results, make sure that any instruction following CSA is a single-word instruction.
CSA fr1,fr2 Compare fr1 to fr2 and skip if above Words: 3 Cycles: 3 or 4 (skip) Affects: C, DC, Z
Operation: Fr1 is compared to fr2 via W. If fr1 is greater than fr2, the following instruction word is skipped.
Coding: MOVF fr1,0 SUBWF fr2,0 BTFSC 3,0
Note: Only one word is skipped by this instruction. To avoid strange results, make sure that any instruction following CSA is a single-word instruction.
CSAE fr,#literal Compare fr to literal and skip if above or equal Words: 3 Cycles: 3 or 4 (skip) Affects: C, DC, Z
Operation: Fr is compared to literal via W. If fr is greater than or equal to literal, the following instruction word is skipped.
Coding: MOVLW literal SUBWF fr,0 BTFSS 3,0
Note: Only one word is skipped by this instruction. To avoid strange results, make sure that any instruction following CSAE is a single-word instruction.
CSAE fr1,fr2 Compare fr1 to fr2 and skip if above or equal Words: 3 Cycles: 3 or 4 (skip) Affects: C, DC, Z
Operation: Fr1 is compared to fr2 via W. If fr1 is >= fr2, the following instruction word is skipped.
Coding: MOVF fr2,0 SUBWF fr1,0 BTFSS 3,0
Note: Only one word is skipped by this instruction. To avoid strange results, make sure that any instruction following CSAE is a single-word instruction. |

