Exemplo n.º 1
0
 /// <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;
 }
Exemplo n.º 2
0
 /// <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;
 }
Exemplo n.º 3
0
 public D3nowOpCodeInfo(EnumValue code, uint immediate8, OpCodeFlags flags)
 {
     Code            = code;
     MandatoryPrefix = MandatoryPrefix.None;
     Table           = OpCodeTableKind.T0F;
     OpCode          = 0x0F;
     GroupIndex      = -1;
     Flags           = flags;
     Immediate8      = immediate8;
 }
Exemplo n.º 4
0
 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;
 }
Exemplo n.º 5
0
 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;
 }
Exemplo n.º 6
0
 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;
 }
Exemplo n.º 7
0
        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;
            }
        }
Exemplo n.º 8
0
 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)
 {
 }
Exemplo n.º 9
0
 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)
 {
 }
Exemplo n.º 10
0
 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)
 {
 }