BIAND (Bit Invert AND)
BIAND
<Description>
This instruction ANDs the inverse of a specified bit with the carry flag and places the result in
the carry flag. The specified bit can be located in a general register or memory. The bit
number is specified by 3-bit immediate data. The operation is shown schematically below.
The value of the specified bit is not changed.
<Instruction Formats>
*Register direct, register indirect, or absolute addressing.
I
H
N
Z
V
C
—
—
—
— —
— —
↕
<Operation>
C
∧
[ ¬ (<Bit No.> of <EAd>)]
→
C
<Assembly-Language Format>
BIAND
#xx:3, <EAd>
<Examples>
BIAND #0, R1H
BIAND #2, @R5
BIAND #4, @H'FFDE:8
<Operand Size>
Byte
<Condition Code>
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: ANDed with the inverse of the specified
bit.
I
H
N
Z
V
C
—
—
—
— —
— —
↕
Register direct
BIAND #xx:3, Rd
7
6
1 IMM rd
2
Register indirect
BIAND #xx:3,@Rd
7
C
0 rd
0
7
6
1 IMM 0
6
Absolute address
BIAND #xx:3,@aa:8
7
E
abs
7
6
1 IMM 0
6
Addressing
mode
Mnem.
Operands
1st byte
Instruction code
No. of
states
2nd byte
3rd byte
4th byte
Bit No.
Byte data in register or memory
<EAd>*
→
7
0
C
∧
C
#xx:3
Invert
49
Содержание H8/300 Series
Страница 2: ...H8 300 Programming Manual...