예제 #1
0
        public static void AddHook(this ICPUWithBlockBeginHook cpu, [AutoParameter] Machine m, uint addr, string pythonScript)
        {
            var engine = new BlockPythonEngine(m, cpu, pythonScript);

            cpu.AddHook(addr, engine.Hook);
        }
예제 #2
0
 public static void AddHook(this ICPUWithHooks cpu, [AutoParameter]Machine m, uint addr, string pythonScript)
 {
     var engine = new BlockPythonEngine(m, cpu, pythonScript);
     cpu.AddHook(addr, engine.Hook);
 }
예제 #3
0
        public static void SetHookAtBlockBegin(this ICPUWithBlockBeginHook cpu, [AutoParameter] Machine m, string pythonScript)
        {
            var engine = new BlockPythonEngine(m, cpu, pythonScript);

            cpu.SetHookAtBlockBegin(engine.HookWithSize);
        }
예제 #4
0
 public static void SetHookAtBlockBegin(this ICPUWithHooks cpu, [AutoParameter]Machine m, string pythonScript)
 {
     var engine = new BlockPythonEngine(m, cpu, pythonScript);
     cpu.SetHookAtBlockBegin(engine.HookWithSize);
 }