From c26b99b5470e84090d531e48f2e1357ea4811e3b Mon Sep 17 00:00:00 2001 From: YoshiRulz Date: Sun, 1 Aug 2021 19:02:38 +1000 Subject: [PATCH] Convert RegisterValue to a readonly struct --- .../Interfaces/Services/IDebuggable.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/BizHawk.Emulation.Common/Interfaces/Services/IDebuggable.cs b/src/BizHawk.Emulation.Common/Interfaces/Services/IDebuggable.cs index d2b08b7408..579bdb56a9 100644 --- a/src/BizHawk.Emulation.Common/Interfaces/Services/IDebuggable.cs +++ b/src/BizHawk.Emulation.Common/Interfaces/Services/IDebuggable.cs @@ -47,10 +47,11 @@ namespace BizHawk.Emulation.Common long TotalExecutedCycles { get; } // TODO: this should probably be a long, but most cores were using int, oh well } - public class RegisterValue + public readonly struct RegisterValue { - public ulong Value { get; } - public byte BitSize { get; } + public readonly byte BitSize; + + public readonly ulong Value; /// not in 1..64 public RegisterValue(ulong val, byte bitSize)