public void LoadROM(byte[] ROM) { _romSize = ROM.Length; Array.Copy(ROM, 0, RAM, ROM_BASE_ADDRESS, ROM.Length); Span <byte> romSpan = RAM.AsSpan <byte>(ROM_BASE_ADDRESS, ROM.Length); }
public Span <byte> ReadROM() { Span <byte> rom = RAM.AsSpan <byte>(ROMBaseAddress, _romSize); return(rom); }