SX Users Manual Rev. 3.1
© 2000 Scenix Semiconductor, Inc. All rights reserved.
Chapter 3 Instruction Set
3.6.26 MOV W,--fr
Move (fr-1) to W
W = fr -1
0000 110f ffff
This instruction decrements the value in the specified register file by one and moves
the 8-bit result into W. The file register is left unchanged.
If the file register contains 01h, the value moved into W is 00h and the Z bit is set.
Otherwise, the bit is cleared.
This example decrements the value in file register 18h and moves the result into W.
For example, if the file register contains 75h, the value 74h is loaded into W, and
the Z bit is cleared. The file register still contains 75h after execution of the