delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/10/01/09:32:24

From: Vic <tudor AT cam DOT org>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Dumb questions to you but important to me
Date: Tue, 30 Sep 1997 18:35:02 -0400
Organization: Communications Accessibles Montreal, Quebec Canada
Lines: 15
Message-ID: <34317E96.1D0@cam.org>
References: <EHCBzp DOT JCn AT nonexistent DOT com>
NNTP-Posting-Host: dynappp-179.hip.cam.org
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Arthur Bredrick wrote:
 
> Another question not DJGPP specific:  Why do extra underscores precede
> identifiers when interfacing between assembly and c?  For example, the
> assembly function _keyboard_init would be c-callable as just keyboard_init,
> without the extra underscore.  Thanks for any help.
this is not DJGPP specific. This is the rule for accessing C variables
and functions from assembly and vice-versa. The variable booga in C will
be _booga in ASM. 
> Art

-- 
--> http://www.cam.org/~tudor <--
Go ahead and build another Messiah
We dig another grave...

- Raw text -


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