public MachineRegister(string name, int code, int bits, MachineSpec spec) { Name = name; Code = code; Bits = bits; InstructionSets.Add(spec); }
public MachineRegister(string name, int code, MachineRegisterType type, MachineSpec spec) { Name = name; Code = code; RegisterType = type; Bits = type.Bits; InstructionSets.Add(spec); }
public X86Register64(string name, int code, MachineRegisterType type, MachineSpec spec) : base(name, code, type, spec) { }
public X86Register64(string name, int code, int bits, MachineSpec spec) : base(name, code, bits, spec) { }
private static MachineRegister Create(string name, int number, int size, MachineSpec set) { var r = new MachineRegister(name, number, size, set); AllRegisters.Add(r); return r; }