Esempio n. 1
0
        public void Scanner_ResolveInterceptedCall()
        {
            var scanner      = CreateScanner(0x1000, 0x2000);
            var addrEmulated = Address.Ptr32(0x5000);
            var addrThunk    = Address.Ptr32(0x1800);

            mem.WriteLeUInt32(addrThunk, addrEmulated.ToUInt32());
            program.InterceptedCalls.Add(addrEmulated, new ExternalProcedure("Foo", null));
            var ep = scanner.GetInterceptedCall(addrThunk);

            Assert.AreEqual("Foo", ep.Name);
        }