MOV [using Expressions]

 

MOV        W,/fr                Move not fr into W


Words:        1        Cycles:        1                Affects:        Z

 

Operation:        The one's complement of fr is moved into W. Z will be set to 1 if the result was 0, otherwise Z will cleared to 0.

 

Coding:        COMF                fr,0

 

 

MOV        W,fr-W        Move fr-W into W


Words:        1        Cycles:        1                Affects:        C, DC, Z

 

Operation:        W is subtracted from fr and the result is stored in W. C will be cleared to 0 if an underflow occurred, otherwise C will be set to 1. DC will be cleared or set depending on whether or not an underflow occurred in the least-significant nibble.  Z will be set to 1 if the result was 0, otherwise Z will be cleared to 0.

 

Coding:        SUBWF                fr,0

 

 

MOV        W,++fr        Move the incremented value of fr into W


Words:        1        Cycles:        1                Affects:        Z

 

Operation:        The incremented value of fr is  moved into W. Z will be set to 1 if the result was 0, otherwise Z will be cleared to 0.

 

Coding:        INCF                fr,0

 

 

MOV        W,--fr                Move the decremented value of fr into W


Words:        1        Cycles:        1                Affects:        Z

 

Operation:        The decremented value of fr is moved into W. Z will be set to 1 if the result was 0, otherwise Z will be cleared to 0.

 

Coding:        DECF                fr,0

 

 

MOV        W,<<fr        Move the left-rotated value of fr into W


Words:        1        Cycles:        1                Affects:        C

 

Operation:        The left-rotated value of fr is moved into W. On entry, C must hold the value to be shifted into the least-significant bit of the fr value.  On exit, C will hold the previous most-significant bit of the fr value.

 

Coding:        RLF                fr,0

 

 

MOV        W,>>fr        Move the right-rotated value of fr into W


Words:        1        Cycles:        1                Affects:        C

 

Operation:        The right-rotated value of fr is moved into W. On entry, C must hold the value to be shifted into the most-significant bit of the fr value.  On exit, C will hold the previous least-significant bit of the fr value.

 

Coding:        RRF                fr,0

 

 

MOV        W,<>fr        Move the nibble-swapped value of fr into W


Words:        1        Cycles:        1                Affects:        none

 

Operation:        The nibble-swapped value of fr is moved into W.

 

Coding:        SWAPF                fr,0