| delorie.com/archives/browse.cgi | search |
| Xref: | news-dnh.mv.net comp.os.msdos.djgpp:3424 |
| Path: | news-dnh.mv.net!mv!barney.gvi.net!news.sprintlink.net!newsfeed.internetmci.com!info.ucla.edu!library.ucla.edu!agate!sunsite.doc.ic.ac.uk!hgmp.mrc.ac.uk!daresbury!s-crim1!mbbad |
| From: | mbbad AT s-crim1 DOT dl DOT ac DOT uk (I. Badcoe) |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Re: ASM functions returning values |
| Date: | 24 Nov 1995 10:35:47 GMT |
| Organization: | SERC Daresbury Lab, Warrington, U.K. |
| Lines: | 13 |
| References: | <48sk3q$qmj AT osfb DOT aber DOT ac DOT uk> <DIGK8G DOT A90 AT cfanews DOT harvard DOT edu> |
| Nntp-Posting-Host: | s-crim1.dl.ac.uk |
| To: | djgpp AT sun DOT soe DOT clarkson DOT edu |
| Dj-Gateway: | from newsgroup comp.os.msdos.djgpp |
NIGEL HUGHES (ngh94 AT aber DOT ac DOT uk) wrote: : Dear All, : Quick question. I have some asm routines (in a separate : .S file which I link in) and have parameters being passed OK no : probs. The question I have is, where do I leave a value so it : is returned by the function? Stack a register (%eax sounds likely) or what? I seen to remember that int returns are in eax (and pointers too ?) but I think that there are compiler switches which can lead to float returns being left on top of the coprocessor stack. Badders
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |