Operations:

Syntax:

Operation:

Operands:

Program Counter:

Opcode

Comment

Stack

BST Rd,b

T = Rd(b)

0 <= d <= 31, 0 <= b <= 7

PC = PC + 1

1111101ddddd0bbb

Description

Stores bit b from Rd to the T bit in SREG (Status Register).

Status Register (SREG) and Boolean Formula

I

T

‘0' if bit b in Rd is cleared. Set to ‘1' otherwise.

H

S

V

N

Z

C

Example:

                  ; Copy bit
      bst   r1,2  ; Store bit 2 of r1 in T bit
      bld   r0,4  ; Load T into bit 4 of r0

Words

1 (2 bytes)

Table Cycles

Name

Cycles

AVRe

1

AVRxm

1

AVRxt

1

AVRrc

1