Add Z80 CPU skeleton, RegisterPair struct, and MemoryBus implementation

This commit is contained in:
Marc Parsons
2026-04-08 16:34:49 +01:00
parent 81912da3cb
commit ea828aad2d
9 changed files with 211 additions and 31 deletions

17
Core/Cpu/RegisterPair.cs Normal file
View File

@@ -0,0 +1,17 @@
using System.Runtime.InteropServices;
namespace Core.Cpu
{
[StructLayout(LayoutKind.Explicit)]
public struct RegisterPair
{
[FieldOffset(0)]
public ushort Word;
[FieldOffset(0)]
public byte Low;
[FieldOffset(1)]
public byte High;
}
}