public static void InstallCustomInstructionHandlerFromFile(this BaseRiscV cpu, string pattern, string path) { var engine = new RiscVInstructionPythonEngine(cpu, pattern, path: path); cpu.InstallCustomInstruction(pattern, engine.Hook); }
public static void InstallCustomInstructionHandlerFromString(this BaseRiscV cpu, string pattern, string pythonScript) { var engine = new RiscVInstructionPythonEngine(cpu, pattern, script: pythonScript); cpu.InstallCustomInstruction(pattern, engine.Hook); }