SX Users Manual Rev. 3.1
96
© 2000 Scenix Semiconductor, Inc. All rights reserved.
www.scenix.com
Chapter 3 Instruction Set
3.6.26 MOV W,--fr
Move (fr-1) to W
Operation:
W = fr -1
Bits affected:
Z
Opcode:
0000 110f ffff
Description:
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.
Cycles:
1
Example:
mov
w,--$18
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
instruction.