本文整理汇总了C#中Reko.Arch.X86.IntelArchitecture.ReadCodeAddress方法的典型用法代码示例。如果您正苦于以下问题:C# IntelArchitecture.ReadCodeAddress方法的具体用法?C# IntelArchitecture.ReadCodeAddress怎么用?C# IntelArchitecture.ReadCodeAddress使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Reko.Arch.X86.IntelArchitecture
的用法示例。
在下文中一共展示了IntelArchitecture.ReadCodeAddress方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: X86arch_ReadCodeAddress_ProtectedFlatMode32
public void X86arch_ReadCodeAddress_ProtectedFlatMode32()
{
arch = new X86ArchitectureFlat32();
var rdr = CreateImageReader(0x78, 0x56, 0x34, 0x12);
var state = arch.CreateProcessorState();
state.SetRegister(Registers.cs, Constant.Word16(0x1111));
Address addr = arch.ReadCodeAddress(4, rdr, state);
Assert.AreEqual("12345678", addr.ToString());
}
示例2: ReadCodeAddress_RealMode_SegOffset
public void ReadCodeAddress_RealMode_SegOffset()
{
arch = new IntelArchitecture(ProcessorMode.Real);
var rdr = CreateImageReader(0x78, 0x56, 0x34, 0x12);
var state = arch.CreateProcessorState();
state.SetRegister(Registers.cs, Constant.Word16(0x1111));
Address addr = arch.ReadCodeAddress(4, rdr, state);
Assert.AreEqual("1234:5678", addr.ToString());
}
示例3: ReadCodeAddress_ProtectedMode16_Offset
public void ReadCodeAddress_ProtectedMode16_Offset()
{
arch = new X86ArchitectureProtected16();
var rdr = CreateImageReader(0x78, 0x56);
var state = arch.CreateProcessorState();
state.SetRegister(Registers.cs, Constant.Word16(0x1234));
Address addr = arch.ReadCodeAddress(2, rdr, state);
Assert.AreEqual("1234:5678", addr.ToString());
}