コード例 #1
0
        public static void InstallCustomInstructionHandlerFromFile(this BaseRiscV cpu, string pattern, string path)
        {
            var engine = new RiscVInstructionPythonEngine(cpu, pattern, path: path);

            cpu.InstallCustomInstruction(pattern, engine.Hook);
        }
コード例 #2
0
        public static void InstallCustomInstructionHandlerFromString(this BaseRiscV cpu, string pattern, string pythonScript)
        {
            var engine = new RiscVInstructionPythonEngine(cpu, pattern, script: pythonScript);

            cpu.InstallCustomInstruction(pattern, engine.Hook);
        }