protected void SetPICModel(string picName, PICExecMode mode = PICExecMode.Traditional) { arch = new PICArchitecture(new ServiceContainer(), "pic") { Options = new PICArchitectureOptions(picName, mode) }; picModel = arch.ProcessorModel; arch.CreatePICProcessorModel(); PICMemoryDescriptor.ExecMode = mode; }
public PICArchitectureOptions(IPICProcessorModel processorModel, PICExecMode execMode, string ldrType) { ProcessorModel = processorModel ?? throw new ArgumentNullException(nameof(processorModel)); PICExecutionMode = execMode; LoaderType = ldrType; }