Ejemplo n.º 1
0
        private AnalysisNet.IInstruction ProcessUnconditionalBranch(Cecil.Cil.Instruction op)
        {
            uint target = (uint)((Cecil.Cil.Instruction)op.Operand).Offset;

            AnalysisNetBytecode.BranchInstruction instruction = new AnalysisNetBytecode.BranchInstruction((uint)op.Offset, AnalysisNetBytecode.BranchOperation.Branch, target);
            return(instruction);
        }
Ejemplo n.º 2
0
        private AnalysisNet.IInstruction ProcessUnaryConditionalBranch(Cecil.Cil.Instruction op)
        {
            AnalysisNetBytecode.BranchOperation operation = OperationHelper.ToBranchOperation(op.OpCode.Code);
            uint target = (uint)((Cecil.Cil.Instruction)op.Operand).Offset;

            AnalysisNetBytecode.BranchInstruction instruction = new AnalysisNetBytecode.BranchInstruction((uint)op.Offset, operation, target);
            return(instruction);
        }