SX Users Manual Rev. 3.1
106
© 2000 Scenix Semiconductor, Inc. All rights reserved.
www.scenix.com
Chapter 3 Instruction Set
3.6.36 NOT fr
Complement of fr into fr
Operation:
fr = fr ^ FFh
Bits affected:
Z
Opcode:
0010 011f ffff
Description:
This instruction complements each bit of the specified file register and writes the
result back into the same register. If the result is 00h, the Z bit is set.
Cycles:
1
Example:
not
$11
;complement file register 11h
Suppose that W contains the value 1Ch. This instruction takes the complement of
1Ch and writes the result, E3h, into the same register. The result is nonzero, so the
Z bit is cleared.