Philippe Pons
phpons at free.fr
Mon May 10 05:45:06 CDT 2004
Hi, The .NET framework sdk ships with an IL disassembler called ILDASM(ildasm.exe) If you compiled a hello, world piece of code into a hello.dll, you can get the MSIL code by typing: c:\>ildasm hello.dll It generates a windows interface. HTH, Philippe ----- Original Message ----- From: "John W. Colby" <jwcolby at colbyconsulting.com> To: <dba-vb at databaseadvisors.com> Sent: Monday, May 10, 2004 12:53 AM Subject: RE: [dba-VB] .net assembler > On the same note, does anyone know how to look at the Microsoft Intermediate > Language (PCODE) for the running program? I'd love to see that. > > John W. Colby > www.ColbyConsulting.com > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of John W. Colby > Sent: Sunday, May 09, 2004 6:47 PM > To: VBA; AccessD > Subject: [dba-VB] .net assembler > > > Just thought you folks might be interested. I found a right click menu item > in VB.Net as I was stepping through my program... "Go to disassembly" that > displays the machine code for the vb being processed. Ain't that cool? Not > that I've even looked at assembler in more years than I'd care to admit (and > no comments, never mind labels for the jump addresses) but it is still > fascinating. > > Url = buf.Substring(4) > 000000fe mov eax,dword ptr [ebp-4] > 00000101 mov dword ptr [ebp-34h],eax > 00000104 mov ecx,edi > 00000106 mov edx,4 > Url = buf.Substring(4) > 0000010b cmp dword ptr [ecx],ecx > 0000010d call FF482728 > 00000112 mov ebx,eax > 00000114 mov eax,dword ptr [ebp-34h] > 00000117 lea edx,[eax+8] > 0000011a call 75ACCA48 > Exit Do > 0000011f nop > 00000120 jmp 0000012B > End If > 00000122 nop > Loop > 00000123 nop > Do While True > 00000124 xor eax,eax > 00000126 cmp eax,1 > 00000129 jne 000000D4 > Reader.Close() > 0000012b mov ecx,dword ptr [ebp-0Ch] > 0000012e mov eax,dword ptr [ecx] > 00000130 call dword ptr [eax+44h] > 00000133 nop > Stream.Close() > 00000134 mov ecx,dword ptr [ebp-10h] > 00000137 mov eax,dword ptr [ecx] > 00000139 call dword ptr [eax+5Ch] > 0000013c nop > End Sub > 0000013d nop > 0000013e pop ebx > 0000013f pop esi > 00000140 pop edi > 00000141 mov esp,ebp > 00000143 pop ebp > 00000144 ret > > John W. Colby > www.ColbyConsulting.com > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > >