Not (Not = Logical Complement) - Hitachi H8/300L Series Programming Manual

Hide thumbs Also See for H8/300L Series:
Table of Contents

Advertisement

2.2.36 NOT (NOT = logical complement)

Operation
¬ Rd → Rd
Assembly-Language Format
NOT Rd
Operand Size
Byte
Condition Code
I
H
— —
I:
Previous value remains unchanged.
H:
Previous value remains unchanged.
N:
Set to 1 when the result is negative; otherwise cleared to 0.
Z:
Set to 1 when the result is zero; otherwise cleared to 0.
V:
Cleared to 0.
C:
Previous value remains unchanged.
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 and Number of Execution States
Addressing
mode
Mnem.
Register
NOT
direct
N
Z
V
C
0
Instruction code
Operands
1st byte 2nd byte 3rd byte 4th byte
Rd
1
7
0
rd
No. of
states
2
101

Advertisement

Table of Contents
loading

Table of Contents