Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > .NET General

Vista - Addresses and call instructions

Reply
 
Old 04-16-2009   #1 (permalink)
John


 
 

Addresses and call instructions

Hi all,

Maybe someone could help me clearing out some confusion.

If I compile the following lines of code and break the execution with
a debugger just after the call to a(), but before the call to b(), i
would expect the calls to jump to memory locations in usermode address
space, however, from the assembly listing below, I see call
instructions to addresses way up in the address space.

Can anyone explain this?

Thanx!

John.


namespace ConsoleApplication2
{
class Program
{
static void Main(string[] args)
{
Bob.f();
}
}

static class Bob
{
public static void a() { Console.WriteLine("a"); }
public static void b() { Console.WriteLine("b"); }
public static void c() { Console.WriteLine("b"); }
public static void f() { a(); b(); c(); }
}
}



00000000 sub rsp,28h
00000004 nop
00000005 mov rax,7FF001D1D60h
0000000f mov eax,dword ptr [rax]
00000011 test eax,eax
00000013 je 000000000000001A
00000015 call FFFFFFFFF305F4B0
0000001a nop
0000001b call FFFFFFFFFFEC9378
00000020 nop
00000021 call FFFFFFFFFFEC9380
00000026 nop
00000027 call FFFFFFFFFFEC9388
0000002c nop
0000002d jmp 000000000000002F
0000002f add rsp,28h
00000033 rep ret

My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Mistranslations and Crazy Instructions Chillout Room
Call function with parameters that also call functions (.Net and P PowerShell
Sidebar Instructions Vista General
Server instructions Vista mail
Vista Install Instructions Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46