Convert RegisterValue to a readonly struct
This commit is contained in:
parent
92dfdaec0f
commit
c26b99b547
|
@ -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
|
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 readonly byte BitSize;
|
||||||
public byte BitSize { get; }
|
|
||||||
|
public readonly ulong Value;
|
||||||
|
|
||||||
/// <exception cref="ArgumentOutOfRangeException"><paramref name="bitSize"/> not in 1..64</exception>
|
/// <exception cref="ArgumentOutOfRangeException"><paramref name="bitSize"/> not in 1..64</exception>
|
||||||
public RegisterValue(ulong val, byte bitSize)
|
public RegisterValue(ulong val, byte bitSize)
|
||||||
|
|
Loading…
Reference in New Issue