i8080 registers are now proper structs (#17)

This commit is contained in:
Cacodemon345
2022-09-09 14:13:15 +06:00
committed by GitHub
parent fbe5d25538
commit 176278bca0

View File

@@ -19,22 +19,22 @@ typedef struct i8080
{
union {
uint16_t af; /* Intended in case we also go for μPD9002 emulation, which also has a Z80 emulation mode. */
uint8_t a, flags;
struct { uint8_t a, flags; };
};
union
{
uint16_t bc;
uint8_t b, c;
struct { uint8_t b, c; };
};
union
{
uint16_t de;
uint8_t d, e;
struct { uint8_t d, e; };
};
union
{
uint16_t hl;
uint8_t h, l;
struct { uint8_t h, l; };
};
uint16_t pc, sp;
} i8080;