Operations:

Syntax:

Operation:

Operands:

Program Counter:

Opcode

Comment

Stack

BCLR s

SREG(s) = 0

0 <= s <= 7

PC = PC + 1

100101001sss1000

Description

Clears a single flag in SREG.

Status Register (SREG) and Boolean Formula

I

If (s == 7) then I = 0, else unchanged.

T

If (s == 6) then T = 0, else unchanged.

H

If (s == 5) then H = 0, else unchanged.

S

If (s == 4) then S = 0, else unchanged.

V

If (s == 3) then V = 0, else unchanged.

N

If (s == 2) then N = 0, else unchanged.

Z

If (s == 1) then Z = 0, else unchanged.

C

If (s == 0) then C = 0, else unchanged.

Example:

      bclr  0  ; Clear Carry flag
      bclr  7  ; Disable interrupts

Words

1 (2 bytes)

Table Cycles

Name

Cycles

AVRe

1

AVRxm

1

AVRxt

1

AVRrc

1