MOVSZ

 

MOVSZ        W,++fr     Move the incremented value of fr into W and skip if zero


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

 

Operation:        The incremented value of fr is moved into W. The next instruction word will be skipped if the result was 0.

 

Coding:        INCFSZ        fr,0

 

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

 

 

MOVSZ        W,--fr     Move the decremented value of fr into W and skip if zero


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

 

Operation:        The decremented value of fr is moved into W. The next instruction word will be skipped if the result was 0.

 

Coding:        DECFSZ        fr,0

 

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