2.2.42 (2) NOT (W)
NOT (NOT = logical complement)
Logical Complement
Operation
¬ Rd
→
Rd
Assembly-Language Format
NOT.W
Rd
Operand Size
Word
Condition Code
H: Previous value remains unchanged.
N: Set to 1 if the result is negative; otherwise
cleared to 0.
Z:
Set to 1 if the result is zero (the previous
Rd value was H'FFFF); otherwise cleared
to 0.
V: Always cleared to 0.
C: Previous value remains unchanged.
I
UI
H
U
N
Z
V
C
—
—
—
—
↕
↕
0
—
Description
This instruction takes the one’s complement of the contents of a 16-bit register Rd (destination
operand) and stores the result in the 16-bit register Rd.
Available Registers
Rd: R0 to R7, E0 to E7
Operand Format and Number of States Required for Execution
Notes
Instruction Format
1st byte
2nd byte
3rd byte
4th byte
Register direct
NOT.W
Rd
1
7
1
rd
2
No. of
States
Addressing
Mode
Mnemonic
Operands
137