Пример #1
0
		public void TestGrfWithOneBit()
		{
			IProcessorArchitecture arch = new X86ArchitectureReal();
			SignatureBuilder sb = new SignatureBuilder(null, arch);
            sb.AddFlagGroupReturnValue((uint) FlagM.CF, arch.CreateFrame());
			FunctionType sig = sb.BuildSignature();
			Assert.AreEqual("bool", sig.ReturnValue.DataType.ToString());
		}
Пример #2
0
 public void Setup()
 {
     var arch = new X86ArchitectureReal();
     proc = Procedure.Create("foo", Address.Ptr32(0x100), arch.CreateFrame());
     alias = new Aliases(proc, arch);
 }