Operations:

Syntax:

Operation:

Operands:

Program Counter:

Opcode

Comment

Stack

BLD Rd,b

Rd(b) = T

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

PC = PC + 1

1111100ddddd0bbb

Description

Copies the T bit in the SREG (Status Register) to bit b in register Rd.

Status Register (SREG) and Boolean Formula

I

T

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 bit into bit 4 of r0

Words

1 (2 bytes)

Table Cycles

Name

Cycles

AVRrc

1

AVRe

1

AVRxm

1

AVRxt

1