|
Avr8bit-emulator
An emulator for the Atmel AVR 8-bit microcontroller
|
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 | ||
| }; | ||
| struct { ... } SREG |
| bool SREG::C |
| 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().
| bool SREG::I |
| bool SREG::N |
Negative flag
Definition at line 15 of file core.h.
Referenced by asr(), brge(), brlt(), brmi(), brpl(), cln(), lsl(), lsr(), rol(), ror(), sen(), udpate_sreg_arithm_16bit(), update_sreg_arithm(), update_sreg_logic(), and update_sreg_N().
| 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().
| uint8_t SREG::sreg |
| bool SREG::T |
| 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().
| 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().