private static InstructionDescription MAKE_INST(InstructionCode code, string name, InstructionGroup group, InstructionFlags flags, OperandFlags oflags0, OperandFlags oflags1, int opReg, uint opcode0, uint opcode1) { return new InstructionDescription(code, name, group, flags, new OperandFlags[] { oflags0, oflags1 }, opReg, (int)opcode0, (int)opcode1); }
private InstructionDescription(InstructionCode code, string name, InstructionGroup group, InstructionFlags flags, OperandFlags[] operandFlags, int opReg, int opcode0, int opcode1) { Contract.Requires(operandFlags != null); _code = code; _name = name; _group = (byte)group; _flags = (byte)flags; _operandFlags = new ReadOnlyCollection<OperandFlags>((OperandFlags[])operandFlags.Clone()); _opcodeR = (short)opReg; _opcode0 = opcode0; _opcode1 = opcode1; }