Operations:

Syntax:

Operation:

Operands:

Program Counter:

Opcode

Comment

Stack

SEC

C = 1

None

PC = PC + 1

1001010000001000

Description

Sets the Carry (C) flag in SREG (Status Register). (Equivalent to instruction BSET 0.)

Status Register (SREG) and Boolean Formula

I

T

H

S

V

N

Z

C

1

1

Carry flag set.

Example:

      sec         ; Set Carry flag
      adc  r0,r1  ; r0=r0+r1+1

Words

1 (2 bytes)

Table Cycles

Name

Cycles

AVRe

1

AVRxm

1

AVRxt

1

AVRrc

1