Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!rutgers!apple!bionet!agate!ucbvax!hplabs!hp-pcd!hpcvlx!everett From: everett@hpcvlx.HP.COM (Everett Kaser) Newsgroups: comp.sys.ibm.pc Subject: Re: Calling a "C" function from assembly language Message-ID: <101000014@hpcvlx.HP.COM> Date: 25 Oct 88 15:27:11 GMT References: <5876@killer.DALLAS.TX.US> Organization: Hewlett-Packard Co., Corvallis, OR, USA Lines: 16 This is a case of RTFM, I'd say. Both my 5.01 MASM and my 5.x C have a manual, or section of a manual (they're both the exact same pages, just one is a stand-alone manual, and the other is a section of a binder) called "Mixed Language Programming Guide". Section 6.6 of that guide is titled "Calling High-Level Languages from Assembly". The first paragraph is: High-level language routines assume that certain initialization code has previously been executed; you can ensure that the proper initialization is performed by starting in a high-level language module, and then calling an assembly procedure. THE ASSEMBLY PROCEDURE CAN THEN CALL HIGH-LEVEL LANGUAGE ROUTINES AS NEEDED... It then goes on to explain four guidelines to be observed in making the call. Everett Kaser !hplabs!hp-pcd!everett