Avr8bit-emulator
An emulator for the Atmel AVR 8-bit microcontroller
Loading...
Searching...
No Matches
SREG Union Reference

Status Register. More...

#include <core.h>

Data Fields

uint8_t sreg
 
struct { 
 
   bool   C: 1 
 
   bool   Z: 1 
 
   bool   N: 1 
 
   bool   V: 1 
 
   bool   S: 1 
 
   bool   H: 1 
 
   bool   T: 1 
 
   bool   I: 1 
 
};  
 

Detailed Description

Status Register.

Definition at line 10 of file core.h.

Field Documentation

◆ [struct]

struct { ... } SREG

◆ C

bool SREG::C

◆ H

bool SREG::H

Half carry flag

Definition at line 18 of file core.h.

Referenced by brhc(), brhs(), clh(), seh(), update_sreg_arithm(), and update_sreg_H().

◆ I

bool SREG::I

Global interrupt enable/disable flag

Definition at line 20 of file core.h.

Referenced by brid(), brie(), cli(), sei(), and update_sreg_I().

◆ N

bool SREG::N

◆ S

bool SREG::S

Sign bit, S = N ^ V

Definition at line 17 of file core.h.

Referenced by cls(), ses(), udpate_sreg_arithm_16bit(), update_sreg_arithm(), update_sreg_logic(), and update_sreg_S().

◆ sreg

uint8_t SREG::sreg

Status register as a single byte

Definition at line 11 of file core.h.

Referenced by bclr(), brbc(), brbs(), and bset().

◆ T

bool SREG::T

Transfer bit used by BLD and BST instructions

Definition at line 19 of file core.h.

Referenced by bld(), brtc(), brts(), bst(), clt(), set(), and update_sreg_T().

◆ V

bool SREG::V

Two's complement overflow flag

Definition at line 16 of file core.h.

Referenced by asr(), brge(), brlt(), brvc(), brvs(), clv(), lsl(), lsr(), rol(), ror(), sev(), udpate_sreg_arithm_16bit(), update_sreg_arithm(), update_sreg_logic(), and update_sreg_V().

◆ Z

bool SREG::Z

Zero flag

Definition at line 14 of file core.h.

Referenced by breq(), brne(), clz(), sez(), udpate_sreg_arithm_16bit(), update_sreg_arithm(), update_sreg_logic(), and update_sreg_Z().


The documentation for this union was generated from the following file: