| delorie.com/archives/browse.cgi | search |
| Date: | 11 Dec 1997 01:47:00 +0100 |
| From: | mjs AT prg DOT hannover DOT sgh-net DOT de (Mark Junker) |
| Newsgroups: | comp.os.msdos.djgpp |
| Message-ID: | <6jelo2UO8gB@prg.hannover.sgh-net.de> |
| References: | <348F20C7 DOT 4ED52C21 AT spam DOT me> |
| Subject: | Re: NASM functions |
| Lines: | 36 |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Prev. Author: don't AT spam DOT me
Date: 10.12.97
Subject:"NASM functions"
> push ebp
> move eax, [ebp + 8)
You forgot a line.
push ebp
mov ebp,esp
mov eax,[ebp+8]
.
.
.
mov esp,ebp
pop ebp
ret
... or ...
enter 0,0
mov eax,[ebp+8]
.
.
.
leave
ret
Regards, MJS
Use it: _PB3.2 & PREP_ / _ASM & PREASM_ / _NASM & FLINK_
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |