BLD (Bit LoaD)
BLD
<Description>
This instruction loads a specified bit into 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.
Bit No.
7
0
C
#xx:3
Byte data in register or memory
<EAd>*
→
<Operation>
(<Bit No.> of <EAd>)
→
C
<Assembly-Language Format>
BLD
#xx:3, <EAd>
<Examples>
BLD #1, R3H
BLD #2, @R2
BLD #4, @H'FF90: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: Loaded with the specified bit.
I
H
N
Z
V
C
—
—
—
— —
— —
↕
Register direct
BLD
#xx:3, Rd
7
7
0 IMM
rd
2
Register indirect
BLD
#xx:3,@Rd
7
C
0 rd
0
7
7
0 IMM
0
6
Absolute address
BLD
#xx:3,@aa:8
7
E
abs
7
7
0 IMM
0
6
Addressing
mode
Mnem.
Operands
1st byte
Instruction code
No. of
states
2nd byte
3rd byte
4th byte
54
Summary of Contents for H8/300 Series
Page 2: ...H8 300 Programming Manual...