Mail Archives: djgpp/1997/08/05/01:19:30
From: | "Ben Cohee" <benco AT gisco DOT net>
|
Subject: | Help with using Nasm
|
Message-ID: | <01bca0ea$65213dc0$56a333cf@gisco.net.gisco.net>
|
Newsgroups: | comp.os.msdos.djgpp
|
Date: | Mon, 04 Aug 1997 11:20:21 -0400
|
Lines: | 19
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Hello, i have a couple of questions about Nasm and how it passes
parameters. Ive read that to acess the parms that you have to have
push ebp
mov ebp, esp
and that from then the parms can be acessed by [ebp + 8] for the first parm
and +4 for every parm after that. The question is does this matter what
type of parm it is? Like char * or int or fix. Also can you use the
address of the parm and then change it like
mov eax,[ebp + 24]
add [ebp + 16],eax
and have that value or will later on in the funcion when [ebp + 16] id
called will it be the original value from the parameter? Or do I have to
store the [epb + 16] into another register so it can be added to? Thanx in
advance
- Raw text -