コード例 #1
0
 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;
 }
コード例 #2
0
 public PICArchitectureOptions(IPICProcessorModel processorModel, PICExecMode execMode, string ldrType)
 {
     ProcessorModel   = processorModel ?? throw new ArgumentNullException(nameof(processorModel));
     PICExecutionMode = execMode;
     LoaderType       = ldrType;
 }