Mail Archives: djgpp/1997/12/11/20:17:07
Sorry about the typo. What's in esp to start with? The stack address?
Ryan
Bill Currie wrote:
> Ryan McGee wrote:
> >
> > I would greatly appreciate it if someone could explain to me how this
> > code allows you to accsess your paremiters passed to that function:
> >
> > push ebp
> > move eax, [ebp + 8)
> ^
> typo?
>
> >
> > The question I have is how do you access the stack by pushing the value
> > of bp onto it? Thanks
>
> It doesn't. There's a `mov ebp,esp' line missing. ie
>
> push ebp
> mov ebp,esp
> mov eax,[ebp + 8]
> ...
>
> Bill
> --
> Leave others their otherness
- Raw text -