Add emulate() method

This commit is contained in:
de4dot 2012-01-02 14:23:10 +01:00
parent 08f8a2809d
commit eb4a38163d

View File

@ -221,6 +221,11 @@ namespace de4dot.blocks.cflow {
emulate(instr.Instruction);
}
public void emulate(IList<Instr> instructions, int start, int end) {
for (int i = start; i < end; i++)
emulate(instructions[i].Instruction);
}
public void emulate(Instruction instr) {
switch (instr.OpCode.Code) {
case Code.Starg: