Essgee.Unity/Assets/Plugins/Essgee/Emulation/CPU/SM83.Register.cs
2025-01-02 17:55:16 +08:00

26 lines
431 B
C#

using System;
using System.Diagnostics;
using System.Runtime.InteropServices;
namespace Essgee.Emulation.CPU
{
public partial class SM83
{
[DebuggerDisplay("{Word}")]
[StructLayout(LayoutKind.Explicit)]
[Serializable]
public struct Register
{
[NonSerialized]
[FieldOffset(0)]
public byte Low;
[NonSerialized]
[FieldOffset(1)]
public byte High;
[FieldOffset(0)]
public ushort Word;
}
}
}