Beispiel #1
0
 /// <summary>
 ///     Construct directly from instruction format and mappings.
 /// </summary>
 public NativeInstructionDefinition([NotNull] InstructionFormat format,
                                    [NotNull] InstructionFieldMappingBuilder.InstructionFieldMapping mapping)
 {
     Format        = format;
     field_mapping = mapping;
 }
Beispiel #2
0
        // Constructors ///////////////////////////////////////////////////////

        /// <summary>
        ///     Construct from mnemonic, operand formats, and mappings.
        /// </summary>
        public NativeInstructionDefinition([NotNull] string mnemonic, [NotNull] OperandFormat operand_format,
                                           [NotNull] InstructionFieldMappingBuilder.InstructionFieldMapping mapping)
        {
            Format        = new InstructionFormat(mnemonic, operand_format);
            field_mapping = mapping;
        }