🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Calling callgulam from TC

#41734
From: DAVID MEGGINSON
Date: Mon, 05 Mar 1990 15:49
17 lines
974 bytes
>        your example is correct. the reason it does'nt work from
>Turbo C  is that Turbo C passed the arguements in registers by
>default, while gulam is expecting them to be on the stack (like the
>normal C stack frame conventions). (is there a option in TC to do
>this??)

The cdecl keyword in Turbo C forces arguments to be passed on the stack 
rather than in the registers. ie:

int cdecl (*_shell_p)( char * cmd );

If you could pass this on to the net, I'd appreciate it.

David Megginson, Centre for Medieval Studies
BITNET: meggin@vm.epas.utoronto.ca
---
 * Via ProDoor 3.1R 
Technical Details
Message-ID: <90030820221503@masnet.uucp>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!torsqnt!tmsoft!masnet!canremote!david.megginson

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!torsqnt!tmsoft!masnet!canremote!david.megginson
From: david.megginson@canremote.uucp (DAVID MEGGINSON)
Newsgroups: comp.sys.atari.st
Subject: Re: Calling callgulam from TC
Message-ID: <90030820221503@masnet.uucp>
Date: 5 Mar 90 15:49:00 GMT
Organization: Canada Remote Systems Limited, Mississauga, ON, Canada
Lines: 17