MOV [using Expressions]

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.

 

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