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);
        }
Beispiel #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);
 }
        public static void SetHookAtBlockBegin(this ICPUWithBlockBeginHook cpu, [AutoParameter] Machine m, string pythonScript)
        {
            var engine = new BlockPythonEngine(m, cpu, pythonScript);

            cpu.SetHookAtBlockBegin(engine.HookWithSize);
        }
Beispiel #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);
 }