Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Assembly x86 > Re: Stack Clear...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 6 of 18 Topic 4486 of 4860
Post > Topic >>

Re: Stack Clearing (win32)

by Spoon <root@[EMAIL PROTECTED] > Jan 16, 2008 at 11:25 AM

Arargh wrote:

> From ws2_32.dll:
> 
> 01000                       htonl           proc    near
> 01000  8B 4C 24 04                       mov     ecx,dword ptr [esp+4]
> 01004  8B C1                                mov     eax,ecx
> 01006  8B D1                                mov     edx,ecx
> 01008  25 0000FF00                          and     eax,0FF00h
> 0100D  C1 E2 10                             shl     edx,10h
> 01010  0B C2                                or      eax,edx
> 01012  8B D1                                mov     edx,ecx
> 01014  C1 EA 10                             shr     edx,10h
> 01017  81 E1 00FF0000                       and     ecx,0FF0000h
> 0101D  0B D1                                or      edx,ecx
> 0101F  C1 E0 08                             shl     eax,8
> 01022  C1 EA 08                             shr     edx,8
> 01025  0B C2                                or      eax,edx
> 01027  C2 0004                              retn    4
>                             htonl           endp

Someone should have mercy and tell Microsoft about bswap.
It's been available for, what, 20 years?
:-þ
 




 18 Posts in Topic:
Stack Clearing (win32)
"bwaichu@[EMAIL PROT  2008-01-14 17:37:50 
Re: [Clax86list] Stack Clearing (win32)
Charles Crayne <spamt  2008-01-14 19:59:16 
Re: Stack Clearing (win32)
ArarghMail801NOSPAM <s  2008-01-14 22:16:39 
Re: Stack Clearing (win32)
(Stephen Pelc) <spamtr  2008-01-15 09:19:32 
Re: Stack Clearing (win32)
ArarghMail801NOSPAM <s  2008-01-15 15:59:29 
Re: Stack Clearing (win32)
Spoon <root@[EMAIL PRO  2008-01-16 11:25:27 
Re: Stack Clearing (win32)
ArarghMail801NOSPAM <s  2008-01-16 18:04:34 
Re: Stack Clearing (win32)
Spoon <root@[EMAIL PRO  2008-01-17 14:26:25 
Re: Stack Clearing (win32)
ArarghMail801NOSPAM <s  2008-01-17 15:16:03 
Re: Stack Clearing (win32)
Tim Roberts <spamtrap  2008-01-18 04:48:17 
Re: Stack Clearing (win32)
ArarghMail801NOSPAM <s  2008-01-18 05:42:08 
Re: Stack Clearing (win32)
Tim Roberts <spamtrap  2008-01-20 05:54:37 
Re: Stack Clearing (win32)
ArarghMail801NOSPAM <s  2008-01-20 03:39:08 
Re: Stack Clearing (win32)
"bwaichu@[EMAIL PROT  2008-01-14 20:08:14 
Re: Stack Clearing (win32)
Cranky <spamtrap@[EMA  2008-01-14 22:06:29 
Re: Stack Clearing (win32)
Frank Kotler <spamtra  2008-01-15 07:20:19 
Re: Stack Clearing (win32)
ArarghMail801NOSPAM <s  2008-01-15 02:09:14 
Re: Stack Clearing (win32)
Alex Buell <spamtrap@  2008-01-21 02:03:49 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Nov 20 20:48:25 CST 2008.