Path: utzoo!yunexus!geac!syntron!jtsv16!uunet!ncrlnk!ncrcae!ncr-sd!hp-sdd!hplabs!ucbvax!hoptoad!pozar From: pozar@hoptoad.uucp (Tim Pozar) Newsgroups: comp.sys.ibm.pc Subject: Re: Calling a "C" function from assembly language Message-ID: <5758@hoptoad.uucp> Date: 26 Oct 88 17:10:15 GMT Article-I.D.: hoptoad.5758 References: <5876@killer.DALLAS.TX.US> Reply-To: pozar@hoptoad.UUCP (Tim Pozar) Organization: Syncstream/Widget Systems (San Francisco) Lines: 22 In article <5876@killer.DALLAS.TX.US> cy@killer.DALLAS.TX.US (Cyrus Foughty) writes: > I have a assembly language program from which I want to > call a "C" function. I know this is backwards from what > everyone else does. BTW, I am using Microsoft Masm and > "C" 5.1 for this little dodad. THE Microsoft manuals tell > how to interface an assembly language routine but not the > other way round. I would be forced to change ALL my assembly > programs to match what "C" wants and that is not an option. > I have way to much assembly to change. How do I do it? You have the information you need. When Microsoft describes how to call assembly functions, what they are also saying is how to call C functions too. How arguments are passed to assembly funtions is how they work for C functions. Tim -- ...sun!hoptoad!\ Tim Pozar >fidogate!pozar Fido: 1:125/406 ...lll-winken!/ PaBell: (415) 788-3904 USNail: KKSF / 77 Maiden Lane / San Francisco CA 94108