From 176278bca0d59ad25dc1f38d0c3118a44506ff5b Mon Sep 17 00:00:00 2001 From: Cacodemon345 Date: Fri, 9 Sep 2022 14:13:15 +0600 Subject: [PATCH] i8080 registers are now proper structs (#17) --- src/include/86box/i8080.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/include/86box/i8080.h b/src/include/86box/i8080.h index a7adae201..07cdadcc1 100644 --- a/src/include/86box/i8080.h +++ b/src/include/86box/i8080.h @@ -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; \ No newline at end of file