delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/03/02/06:06:13

From: "Andrew Davidson" <andrew AT lemure DOT freeserve DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: ANSI standard (machine code level) function returns
Date: Mon, 1 Mar 1999 10:57:18 -0000
Organization: Customer of Planet Online
Lines: 18
Message-ID: <7bgg9t$ur1$1@news6.svr.pol.co.uk>
NNTP-Posting-Host: modem-104.cesium.dialup.pol.co.uk
X-Trace: news6.svr.pol.co.uk 920372349 31585 62.136.27.104 (2 Mar 1999 10:59:09 GMT)
NNTP-Posting-Date: 2 Mar 1999 10:59:09 GMT
X-Complaints-To: abuse AT theplanet DOT net
X-Newsreader: Microsoft Outlook Express 5.00.0810.800
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.0810.800
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Andrew Davidson <andrew AT lemure DOT freeserve DOT co DOT uk> wrote in message news:...

Sorry, please ignore that question as it was totally the wrong one to be
asking! :(

What I'm really after is how to pass arguments to a function at machine code
level. Assuming I have the address of the function (which I can keep in any
register you like) what registers would I have to write to to provide
arguments. I'm guessing it would be something like <number of args> in one
register <address of start of args> in another, but how would I know what
sort of arguments they were? I'm really after simply passing a short int to
a function but while I'm here I might as well learn something!

Thanks for any help and sorry again about the last post,
Andrew


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019