cpu - Fix order of 8-bit registers in memory
This commit is contained in:
parent
a7e8c51bdb
commit
8383256d7e
1 changed files with 3 additions and 3 deletions
|
@ -66,15 +66,15 @@ struct Cpu_state {
|
||||||
// Registers
|
// Registers
|
||||||
union {
|
union {
|
||||||
u16 BC;
|
u16 BC;
|
||||||
struct { u8 B; u8 C; };
|
struct { u8 C; u8 B; };
|
||||||
};
|
};
|
||||||
union {
|
union {
|
||||||
u16 DE;
|
u16 DE;
|
||||||
struct { u8 D; u8 E; };
|
struct { u8 E; u8 D; };
|
||||||
};
|
};
|
||||||
union {
|
union {
|
||||||
u16 HL;
|
u16 HL;
|
||||||
struct { u8 H; u8 L; };
|
struct { u8 L; u8 H; };
|
||||||
};
|
};
|
||||||
|
|
||||||
u8 A;
|
u8 A;
|
||||||
|
|
Loading…
Reference in a new issue