i8080 registers are now proper structs (#17)
This commit is contained in:
@@ -19,22 +19,22 @@ typedef struct i8080
|
|||||||
{
|
{
|
||||||
union {
|
union {
|
||||||
uint16_t af; /* Intended in case we also go for μPD9002 emulation, which also has a Z80 emulation mode. */
|
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
|
union
|
||||||
{
|
{
|
||||||
uint16_t bc;
|
uint16_t bc;
|
||||||
uint8_t b, c;
|
struct { uint8_t b, c; };
|
||||||
};
|
};
|
||||||
union
|
union
|
||||||
{
|
{
|
||||||
uint16_t de;
|
uint16_t de;
|
||||||
uint8_t d, e;
|
struct { uint8_t d, e; };
|
||||||
};
|
};
|
||||||
union
|
union
|
||||||
{
|
{
|
||||||
uint16_t hl;
|
uint16_t hl;
|
||||||
uint8_t h, l;
|
struct { uint8_t h, l; };
|
||||||
};
|
};
|
||||||
uint16_t pc, sp;
|
uint16_t pc, sp;
|
||||||
} i8080;
|
} i8080;
|
Reference in New Issue
Block a user