namespace BizHawk.Emulation.Cores.Computers.AmstradCPC { /// /// Information about Amstrad ROM /// public class RomData { /// /// ROM Contents /// public byte[] RomBytes { get { return _romBytes; } set { _romBytes = value; } } private byte[] _romBytes; public enum ROMChipType { Lower, Upper } /// /// Whether this is an Upper or Lower ROM /// public ROMChipType ROMType; /// /// The designated ROM position for this ROM /// public int ROMPosition; /// /// Initialise a RomData object /// public static RomData InitROM(MachineType machineType, byte[] rom, ROMChipType type, int romPosition = 0) { RomData RD = new RomData(); RD.RomBytes = new byte[rom.Length]; RD.RomBytes = rom; RD.ROMType = type; if (type == ROMChipType.Upper) { RD.ROMPosition = romPosition; } for (int i = 0; i < rom.Length; i++) RD.RomBytes[i] = rom[i]; switch (machineType) { case MachineType.CPC464: break; case MachineType.CPC6128: break; } return RD; } } }