NOT (NOT = logical complement)
NOT
<Description>
This instruction replaces the contents of an 8-bit general register with its one's complement
(subtracts the register contents from H'FF).
<Instruction Formats>
<Operation>
¬ Rd
→
Rd
<Assembly-Language Format>
NOT
Rd
<Examples>
NOT R4L
<Operand Size>
Byte
<Condition Code>
I: Previous value remains unchanged.
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; otherwise
cleared to "0."
V: Cleared to "0."
C: Previous value remains unchanged.
I
H
N
Z
V
C
—
—
—
—
↕
↕
0
—
93
Register direct
NOT
Rd
1
7
0
rd
2
Addressing
mode
Mnem.
Operands
1st byte
Instruction code
No. of
states
2nd byte
3rd byte
4th byte
Summary of Contents for H8/300 Series
Page 2: ...H8 300 Programming Manual...