Bst (Bit Store) - Renesas H8/300 Series Programming Manual

Table of Contents

Advertisement

BST (Bit STore)

<Operation>
C → (<Bit No.> of <EAd>)
<Assembly-Language Format>
BST #xx:3, <EAd>
<Examples>
BST #7, R4L
BST #2, @R3
BST #6, @H'FFD1:8
<Operand Size>
Byte
<Description>
This instruction stores the carry flag to a specified flag location in a general register or
memory. The bit number is specified by 3-bit immediate data. The operation is shown
schematically below.
<EAd>*
Byte data in register or memory
<Instruction Formats>
Addressing
mode
Register direct
Register indirect
Absolute address
* Register direct, register indirect, or absolute addressing.
Mnem.
Operands
BST
#xx:3, Rd
BST
#xx:3,@Rd
BST
#xx:3,@aa:8
<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
7
Bit No.
C
Instruction code
1st byte
2nd byte
0 IMM
6
7
7
D
0 rd
7
F
abs
62
H
N
Z
0
3rd byte
4th byte
rd
0
6
7 0 IMM 0
7 0 IMM 0
6
BST
V
C
No. of
states
2
8
8

Advertisement

Table of Contents
loading

Table of Contents