Table of Contents

Advertisement

2.2.19 BST

BST (Bit STore)
Operation
C → (<bit No.> of <EAd>)
Assembly-Language Format
BST #xx:3, <EAd>
Operand Size
Byte
Description
This instruction stores the carry bit in a specified bit location in the destination operand. The bit
number is specified by 3-bit immediate data. Other bits in the destination operand remain
unchanged.
Specified by #xx:3
Bit No.
7
<EAd>
C
Available Registers
Rd:
R0L to R7L, R0H to R7H
ERd: ER0 to ER7
Operand Format and Number of States Required for Execution
Addressing
Mnemonic
Mode*
Register direct
Register indirect
Absolute address
Note:
The addressing mode is the addressing mode of the destination operand <EAd>.
*
Notes
For the @aa:8 access range, refer to the relevant microcontroller hardware manual.
Operands
BST
#xx:3,Rd
BST
#xx:3,@ERd
BST
#xx:3,@aa:8
Condition Code
I
UI H
— — — — — — — —
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.
0
Instruction Format
1st byte
2nd byte
6
7
0 IMM
rd
7
D
0 erd
0
7
F
abs
68
U
N
Z
V
3rd byte
4th byte
6
7
0 IMM
0
6
7
0 IMM
0
Bit Store
C
No. of
States
2
8
8

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents