cpu - Fix order of 8-bit registers in memory

This commit is contained in:
madmaurice 2023-08-29 19:42:01 +02:00
parent a7e8c51bdb
commit 8383256d7e

View file

@ -66,15 +66,15 @@ struct Cpu_state {
// Registers
union {
u16 BC;
struct { u8 B; u8 C; };
struct { u8 C; u8 B; };
};
union {
u16 DE;
struct { u8 D; u8 E; };
struct { u8 E; u8 D; };
};
union {
u16 HL;
struct { u8 H; u8 L; };
struct { u8 L; u8 H; };
};
u8 A;