i8080 registers are now proper structs (#17)
This commit is contained in:
@@ -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;
|
Reference in New Issue
Block a user