© 2000 Scenix Semiconductor, Inc. All rights reserved.
97
SX Users Manual Rev. 3.1
www.scenix.com
Chapter 3 Instruction Set
3.6.27 MOV W,++fr
Move (fr+1) to W
Operation:
W = fr + 1
Bits affected:
Z
Opcode:
0010 100f ffff
Description:
This instruction increments 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 FFh, 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 increments the value in file register 18h and moves the result into W.
For example, if the file register contains 75h, the value 76h is loaded into W, and
the Z bit is cleared. The file register still contains 75h after execution of the
instruction.