/// <summary> /// Initializes a new instance of the <see cref="OpCode"/> class. /// </summary> /// <param name="name">The name.</param> /// <param name="opcodeName">The enum value of the operator.</param> /// <param name="operands">The number of operands.</param> /// <param name="postscript">The postscript equivalent, or null, if no such operation exists.</param> /// <param name="flags">The flags.</param> /// <param name="description">The description from Adobe PDF Reference.</param> internal OpCode(string name, OpCodeName opcodeName, int operands, string postscript, OpCodeFlags flags, string description) { Name = name; OpCodeName = opcodeName; Operands = operands; Postscript = postscript; Flags = flags; Description = description; }
/// <summary> /// Initializes a new instance of the <see cref="OpCode"/> class. /// </summary> /// <param name="name">The name.</param> /// <param name="opcodeName">The enum value of the operator.</param> /// <param name="operands">The number of operands.</param> /// <param name="postscript">The postscript equivalent, or null, if no such operation exists.</param> /// <param name="flags">The flags.</param> /// <param name="description">The description from Adobe PDF Reference.</param> internal OpCode(string name, OpCodeName opcodeName, int operands, string postscript, OpCodeFlags flags, string description) { Name = name; OpCodeName = opcodeName; Operands = operands; Postscript = postscript; Flags = flags; Description = description; }
public D3nowOpCodeInfo(EnumValue code, uint immediate8, OpCodeFlags flags) { Code = code; MandatoryPrefix = MandatoryPrefix.None; Table = OpCodeTableKind.T0F; OpCode = 0x0F; GroupIndex = -1; Flags = flags; Immediate8 = immediate8; }
public XopOpCodeInfo(EnumValue code, MandatoryPrefix mandatoryPrefix, OpCodeTableKind table, uint opCode, int groupIndex, XopVectorLength vecLen, OpCodeFlags flags, XopOpKind[] opKinds) { Code = code; MandatoryPrefix = mandatoryPrefix; Table = table; OpCode = opCode; GroupIndex = groupIndex; Flags = flags; VectorLength = vecLen; OpKinds = opKinds; }
public EvexOpCodeInfo(EnumValue code, MandatoryPrefix mandatoryPrefix, OpCodeTableKind table, uint opCode, int groupIndex, EvexVectorLength vecLen, TupleType tupleType, OpCodeFlags flags, EvexOpKind[] opKinds) { Code = code; MandatoryPrefix = mandatoryPrefix; Table = table; OpCode = opCode; GroupIndex = groupIndex; Flags = flags; VectorLength = vecLen; OpKinds = opKinds; TupleType = tupleType; }
public LegacyOpCodeInfo(EnumValue code, MandatoryPrefix mandatoryPrefix, OpCodeTableKind table, uint opCode, int groupIndex, OperandSize operandSize, AddressSize addressSize, OpCodeFlags flags, LegacyOpKind[] opKinds) { Code = code; MandatoryPrefix = mandatoryPrefix; Table = table; OpCode = opCode; GroupIndex = groupIndex; Flags = flags; OperandSize = operandSize; AddressSize = addressSize; OpKinds = opKinds; }
public OpCode(string mnemonic, int t_states, int t_states2, OpCodeFlags flags = OpCodeFlags.Continues) { this.mnemonic = mnemonic; this.t_states = t_states; this.t_states2 = t_states2; this.flags = flags; if (mnemonic != null) { if (mnemonic.IndexOf("(@)") >= 0) this.flags |= OpCodeFlags.RefAddr; if (mnemonic.StartsWith("IN ") || mnemonic.StartsWith("OUT ")) this.flags |= OpCodeFlags.PortRef; if (mnemonic.StartsWith("CALL ") || mnemonic.StartsWith("OUT ")) this.flags |= OpCodeFlags.Call; } }
public EvexOpCodeInfo(EnumValue code, MandatoryPrefix mandatoryPrefix, OpCodeTableKind table, uint opCode, int groupIndex, EvexVectorLength vecLen, TupleType tupleType, OpCodeFlags flags, EvexOpKind[] opKinds) : this(code, mandatoryPrefix, table, opCode, groupIndex, -1, vecLen, tupleType, flags, opKinds) { }
public XopOpCodeInfo(EnumValue code, MandatoryPrefix mandatoryPrefix, OpCodeTableKind table, uint opCode, int groupIndex, XopVectorLength vecLen, OpCodeFlags flags, XopOpKind[] opKinds) : this(code, mandatoryPrefix, table, opCode, groupIndex, -1, vecLen, flags, opKinds) { }
public LegacyOpCodeInfo(EnumValue code, MandatoryPrefix mandatoryPrefix, OpCodeTableKind table, uint opCode, int groupIndex, OperandSize operandSize, AddressSize addressSize, OpCodeFlags flags, LegacyOpKind[] opKinds) : this(code, mandatoryPrefix, table, opCode, groupIndex, -1, operandSize, addressSize, flags, opKinds) { }