3. The Status Register

The Status Register (SREG) is a special 8 bit register that saves different operational status flags in each bit. Different operations may affect different flags (bit) of the register which then would be useful to create decisions after.

In AVR architecture, SREG is an I/O register meaning that it can be operated with instructions such as OUT and IN.

Carry Flag (C) [0]

Zero Flag (Z) [1]

Negative Flag (N) [2]

Two's Complement Overflow Flag (V) [3]

Sign Flag (S) [4]

Half Carry (H) [5]

Bit Copy Storage (T) [6]

Global Interrupt Enable (I) [7]


Revision #2
Created 2026-02-25 09:06:34 UTC by MF
Updated 2026-02-25 09:07:04 UTC by MF