🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.atari.st
Article #41486

Re: Calling callgulam from TC

#41486
From: Edgar Roeder
Date: Fri, 02 Mar 1990 15:07
21 lines
1368 bytes
In article <11368@etana.tut.fi>, av74381@korppi.tut.fi (Vesterinen Arto) writes:
> Unfortunately have not been able to call gulam from a Turbo-C
> program. I have tried out Michal Jaegermann's method for
> MWC but it does not work out for TC. If anyone has figured out
> how to call gulam from TC, please e-mail me how to do it.

Remember that Turbo-C passes function arguments in registers. Since gulam is
not written in Turbo-C it expects the parameter to the callgulam()-function on
the stack. If you compile your program with the option to pass parameters
on the stack, it should run. You can also declare the variable cgp as

        cdecl int  (*cgp)(const char *);       /* pointer to callgulam() */

  - Edgar
-- 

Mail:  Edgar R\"oder			E-Mail: roeder@cs.uni-sb.de
       Liesbet-Dill-Stra\ss e 3
D-6602 Dudweiler                               -o-   -o-
       W-Germany                                   ^
Phone: 06897/74643                     	       	 '---'
Technical Details
Message-ID: <3083@sbsvax.cs.uni-sb.de>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!mcsun!unido!sbsvax!roeder
References: <11368@etana.tut.fi>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!mcsun!unido!sbsvax!roeder
From: roeder@sbsvax.cs.uni-sb.de (Edgar Roeder)
Newsgroups: comp.sys.atari.st
Subject: Re: Calling callgulam from TC
Summary: use cdecl
Message-ID: <3083@sbsvax.cs.uni-sb.de>
Date: 2 Mar 90 15:07:10 GMT
References: <11368@etana.tut.fi>
Organization: Universitaet des Saarlandes, Saarbruecken, W-Germany
Lines: 21