当前位置: 首页>>代码示例>>C#>>正文


C# IProcessorArchitecture.CreateProcessorState方法代码示例

本文整理汇总了C#中IProcessorArchitecture.CreateProcessorState方法的典型用法代码示例。如果您正苦于以下问题:C# IProcessorArchitecture.CreateProcessorState方法的具体用法?C# IProcessorArchitecture.CreateProcessorState怎么用?C# IProcessorArchitecture.CreateProcessorState使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在IProcessorArchitecture的用法示例。


在下文中一共展示了IProcessorArchitecture.CreateProcessorState方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Setup

 public void Setup()
 {
     arch = new IntelArchitecture(ProcessorMode.Protected32);
     m = new ProcedureBuilder();
     state = arch.CreateProcessorState();
     expSimp = new ExpressionSimplifier(
             new IntelArchitecture(ProcessorMode.Protected32).CreateProcessorState());
     SCZO = m.Frame.EnsureFlagGroup((uint)(FlagM.SF | FlagM.CF | FlagM.ZF | FlagM.OF), "SCZO", PrimitiveType.Byte);
     host = new BackwalkerHost();
 }
开发者ID:killbug2004,项目名称:reko,代码行数:10,代码来源:BackwalkerTests.cs

示例2: Setup

 public void Setup()
 {
     arch = new FakeArchitecture();
     m = new ProcedureBuilder();
     state = arch.CreateProcessorState();
     expSimp = new ExpressionSimplifier(arch.CreateProcessorState());
     host = new BackwalkerHost(arch);
 }
开发者ID:gitter-badger,项目名称:reko,代码行数:8,代码来源:BackwalkerTests.cs

示例3: Setup

 public void Setup()
 {
     arch = new X86ArchitectureFlat32();
     m = new ProcedureBuilder();
     state = arch.CreateProcessorState();
     expSimp = new ExpressionSimplifier(arch.CreateProcessorState());
     SCZO = m.Frame.EnsureFlagGroup(Registers.eflags, (uint)(FlagM.SF | FlagM.CF | FlagM.ZF | FlagM.OF), "SCZO", PrimitiveType.Byte);
     host = new BackwalkerHost(arch);
 }
开发者ID:relaxar,项目名称:reko,代码行数:9,代码来源:Backwalker_x86_Tests.cs

示例4: CreateInitialState

 private ProcessorState CreateInitialState(IProcessorArchitecture arch, Dictionary<string, object> args)
 {
     var state = arch.CreateProcessorState();
     if (!args.ContainsKey("--reg"))
         return state;
     var regs = (List<string>)args["--reg"];
     foreach (var regValue in regs.Where(r => !string.IsNullOrEmpty(r)))
     {
         var rr = regValue.Split(':');
         if (rr == null || rr.Length != 2)
             continue;
         var reg = arch.GetRegister(rr[0]);
         state.SetRegister(reg, Constant.Create(reg.DataType, Convert.ToInt64(rr[1], 16)));
     }
     return state;
 }
开发者ID:relaxar,项目名称:reko,代码行数:16,代码来源:CmdLineDriver.cs


注:本文中的IProcessorArchitecture.CreateProcessorState方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。