From 8383256d7e800089c19e7234ee7032b9987cb317 Mon Sep 17 00:00:00 2001 From: MadMaurice Date: Tue, 29 Aug 2023 19:42:01 +0200 Subject: [PATCH] cpu - Fix order of 8-bit registers in memory --- cpu/cpu.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cpu/cpu.h b/cpu/cpu.h index f376e1f..494ed83 100644 --- a/cpu/cpu.h +++ b/cpu/cpu.h @@ -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;