🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.msdos.programmer
Article #185

Calling C functions from assembly

#185
From: G. Simon Gales
Date: Tue, 01 Aug 1989 14:21
11 lines
960 bytes
I'm trying to call some C functions from assembly, using MSC 5.0 and either
MASM or TASM.  I could write a dummy _main() in C, if this makes things
easier, but I'm still not sure what needs to be setup to call a C subroutine.

Can anyone clue me in on how to do this?

-- 
Simon Gales@The University of Kentucky
   simon@ms.uky.edu             | 'Fate... protects fools, little children,
   simon@UKMA.BITNET            |  and ships named Enterprise.' 
   {rutgers, uunet}!ukma!simon  |                           - Riker, ST:TNG
Technical Details
Message-ID: <12324@s.ms.uky.edu>
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!husc6!ukma!simon

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!husc6!ukma!simon
From: simon@ms.uky.edu (G. Simon Gales)
Newsgroups: alt.msdos.programmer,comp.sys.ibm.pc
Subject: Calling C functions from assembly
Summary: How.
Keywords: C ASM Help
Message-ID: <12324@s.ms.uky.edu>
Date: 1 Aug 89 14:21:07 GMT
Reply-To: simon@ms.uky.edu (G. Simon Gales)
Organization: U of Kentucky, Mathematical Sciences
Lines: 11