示例#1
0
        public DecompilerTableEntry(Type instructionType, string name, string operand, InstructionFlags flags, CustomDecompilerDelegate customDecompiler, int?id)
        {
            if (instructionType == null)
            {
                throw new ArgumentNullException(nameof(instructionType));
            }

            InstructionType  = instructionType;
            Name             = name;
            Operand          = operand;
            Flags            = flags;
            CustomDecompiler = customDecompiler;
            Id = id;
        }
示例#2
0
 private static DecompilerTableEntry CreateCustomEntry(string name, string operand = "", InstructionFlags flags = InstructionFlags.INSTRUCTION_NONE, CustomDecompilerDelegate customDecompiler = null, int?id = null)
 {
     return(new DecompilerTableEntry(typeof(Custom), name, operand, flags, customDecompiler, id));
 }
示例#3
0
 private static DecompilerTableEntry CreateEntry <T>(string operand = "", InstructionFlags flags = InstructionFlags.INSTRUCTION_SWITCH, CustomDecompilerDelegate customDecompiler = null, int?id = null) where T : BaseInstruction
 {
     return(new DecompilerTableEntry(typeof(T), string.Empty, operand, flags, customDecompiler, id));
 }