Mail Archives: djgpp/1997/09/19/11:46:47
On Wed, 17 Sep 1997, Larry Swanson wrote:
> I recently decided to learn how to program in assembly using NASM and
> DJGPP. I'm having a problem trying to get the following code to work.
> (I usually get a message like 'access denied') that appears to be when I
> push something on the stack.
> _AddFour:
> push ebp;
> mov ebp , esp;
[cut]
> mov ebp,esp
> pop ebp
> ret
> ;End of
You mixed up:
mov ebp, esp
pop ebp
ret
should read:
mov esp, ebp
pop ebp
ret
Also in the other two procedures. That should fix your problems...
/\/\att /\/\astracci mmastrac AT acs DOT ucalgary DOT ca
GCS/GE d- s+:+ a--- C++++ UA P+ L E-- W+ N++ o K+ w+ O M- V
PS++ PE++ Y+ PGP t+++ 5+++ X++ R++ tv+ b+++ DI++++ I
G++ e h r* z?
- Raw text -