Bnot (Bit Not) - Renesas H8/300 Series Programming Manual

Table of Contents

Advertisement

BNOT (Bit NOT)

<Operation>
¬ (<Bit No.> of <EAd>)
→ (<Bit No.> of <EAd>)
<Assembly-Language Format>
BNOT #xx:3, <EAd>
BNOT Rn, <EAd>
<Examples>
BNOT #7, R1H
BNOT R1L, @R6
BNOT #3, @H'FFB4:8
<Operand Size>
Byte
<Description>
This instruction inverts a specified bit in a general register or memory location. The bit
number is specified by 3-bit immediate data, or by the lower three-bits of a general register.
The operation is shown schematically below.
<EAd>*
Byte data in register or memory
The bit is not tested before being inverted. The condition code flags are not altered.
*Register direct, register indirect, or absolute addressing.
<Condition Code>
I
— — — — — — — —
I: Previous value remains unchanged.
H: Previous value remains unchanged.
N: Previous value remains unchanged.
Z: Previous value remains unchanged.
V: Previous value remains unchanged.
C: Previous value remains unchanged.
#xx:3 or Rn
7
Bit No.
55
H
N
0
Invert
BNOT
Z
V
C

Advertisement

Table of Contents
loading

Table of Contents