Instruction Set ArchitectureIP2022 Users Manual
184
www.ubicom.com
NOT W,fr
Complement fr into W
Operation:
W = fr
Bits affected:
Z
Opcode:
0010 010f ffff ffff
Description:
This instruction loads the ones complement of
the specified data memory location into W. The
data memory location is left unchanged.
If the value loaded into W is zero, the Z bit is set.
Otherwise, the bit is cleared.
Cycles:
1
Example:
mov w,0x099
This example moves the ones complement of
data memory location 0x099 into W. For example,
if the data memory location holds 0x75, the
complement of this value 0x8A is loaded into W,
and the Z bit is cleared. The data memory location
is left unchanged.