SX Users Manual Rev. 3.1
94
© 2000 Scenix Semiconductor, Inc. All rights reserved.
www.scenix.com
Chapter 3 Instruction Set
3.6.24 MOV W,/fr
Move Complement of fr to W
Operation:
W = fr ^ FFh
Bits affected:
Z
Opcode:
0010 010f ffff
Description:
This instruction loads the ones complement of the specified file register into W.
The file register is left unchanged.
If the value loaded into W is 00h, the Z bit is set. Otherwise, the bit is cleared.
Cycles:
1
Example:
mov
W,/$0F
This example moves the ones complement of global file register 0Fh into W. For
example, if the file register contains 75h, the complement of this value, 8Ah, is
loaded into W, and the Z bit is cleared. The file register is left unchanged.