News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Routine problem

Started by ragdog, September 29, 2008, 08:30:45 AM

Previous topic - Next topic

ragdog

Hi

My question is with this:
MOV EAX,DWORD PTR SS:[ESP+C]
..
..

is esp+c a Parameters for a procedur?

i mean this

Myproc proc _1:dword
MOV EAX,DWORD PTR [_1]
...
..
.
ret
Myproc endp

or what is this i know this get a address from stack?!

thanks
ragdog

Tedd

That would depend on where the stack pointer currently is - it could be parameters, or possibly local variables - it'd help to see the lines from the start of the procedure.
Normally ebp is used so it's a non-moving reference point, but compilers can keep track of the current stack level and so access through esp directly (with an adjustment for the current stack level.)
No snowflake in an avalanche feels responsible.

ragdog