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 > Stack Clearing ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 18 Topic 4486 of 4774
Post > Topic >>

Stack Clearing (win32)

by "bwaichu@[EMAIL PROTECTED] " <spamtrap@[EMAIL PROTECTED] > Jan 14, 2008 at 05:37 PM

I am debugging my server app, and I'm having problems with the stack
when calling htons.

When I enter htons,

esp = 0012FF84

but after the call is complete,

esp = 0012FF86

The code is:

push strict word 100
call [htons]

Here is the sit information for htons:

http://msdn2.microsoft.com/en-us/library/ms738557.aspx

htons() takes a unsigned short, which is a word, right?

I can:

add esp, 2

to bring the stack down enough for setting up sockaddr, but I'm not
sure why I am ending up at 0012FF86 when my other window functions
return me back to 0012FF84.

Thanks,

Brian
 




 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 Sun Sep 7 7:10:11 CDT 2008.