From: Ryan McGee Newsgroups: comp.os.msdos.djgpp Subject: Re: NASM functions Date: Wed, 10 Dec 1997 20:25:06 -0600 Organization: InLink Communications Company Lines: 33 Message-ID: <348F4F02.EFBA899A@spam.me> References: <348F20C7 DOT 4ED52C21 AT spam DOT me> <348F3506 DOT 58BA AT tssc DOT co DOT nz> NNTP-Posting-Host: iits0123.inlink.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk 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