From 2cdd908a9e43caf190e2d1621721450b319fb3fd Mon Sep 17 00:00:00 2001 From: balhau Date: Thu, 16 Jul 2020 11:48:39 +0100 Subject: [PATCH] Added union for signed long memory destructuring --- src/cpu/types.hpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/cpu/types.hpp b/src/cpu/types.hpp index 52f361f..4f0ebc6 100644 --- a/src/cpu/types.hpp +++ b/src/cpu/types.hpp @@ -18,6 +18,13 @@ typedef union { Int signed_int; } SignedInt; +typedef union { + struct { + Long value : 63; + Int signal : 1; + } long_with_msb; +} SignedLong; + //IEEE floating point alias typedef float Float; typedef double Double;