Xref: news-dnh.mv.net comp.os.msdos.djgpp:3380 Path: news-dnh.mv.net!mv!news.sprintlink.net!newsfeed.internetmci.com!EU.net!uknet!dcl-cs!bath.ac.uk!aber!ngh94 From: ngh94 AT aber DOT ac DOT uk (NIGEL HUGHES) Newsgroups: comp.os.msdos.djgpp Subject: ASM functions returning values Date: 21 Nov 1995 13:27:22 GMT Organization: Prifysgol Cymru Aberystwyth University of Wales Lines: 15 Distribution: world Nntp-Posting-Host: manuel.aber.ac.uk To: djgpp AT sun DOT soe DOT clarkson DOT edu Dj-Gateway: from newsgroup comp.os.msdos.djgpp 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? e.g. long leg; leg=my_asm_function(); Thanks in advance, Nigel