Path: utzoo!yunexus!geac!syntron!jtsv16!uunet!seismo!sundc!pitstop!sun!decwrl!ucbvax!pasteur!ames!killer!texbell!merch!cpe!hal6000!trsvax!don From: don@trsvax.UUCP Newsgroups: comp.sys.ibm.pc Subject: Re: Calling a "C" function from assembl Message-ID: <216100062@trsvax> Date: 24 Oct 88 13:47:00 GMT Article-I.D.: trsvax.216100062 References: <5876@killer.DALLAS.TX.US> Lines: 20 Nf-ID: #R:killer.DALLAS.TX.US:5876:trsvax:216100062:000:716 Nf-From: trsvax.UUCP!don Oct 24 08:47:00 1988 > I have an assembly language program from which I want to > call a "C" function. > I have way too much assembly to change. How do I do it? You can let the C compiler generate the assembly code for you. I'm using MSC 5.0, and they have the /Fa option, which produces the corresponding assembly language program. Then all you have to do is edit the segments to your liking. If you don't have source, only objects, I don't believe it can be done. MSC does not provide any way to alter the segments from their defaults. % make me stop don't know how to make me. Stop. Don Subt The opinions expressed above are Tandy Corp. strictly mine, not my employer's. 817-390-3068 ...!killer!ninja!sys1!trsvax!don