Description:

Sets the Carry flag (C) in SREG (status register).

Operation:

(i)C ← 1

Syntax: Operands: Program Counter:

(i)SEC None PC ← PC + 1

16-bit Opcode:

1001

0100

0000

1000

Status Register (SREG) and Boolean Formula:

I

T

H

S

V

N

Z

C

-

-

-

-

-

-

-

1

C: 1

Carry flag set

Example:

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

Words: 1 (2 bytes)

Cycles: 1