www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/10/01/22:16:46

From: "M. Schulter" <mschulter AT value DOT net>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: local variebles to inline asm
Date: 2 Oct 1997 01:30:39 GMT
Organization: Value Net Internetwork Services Inc.
Lines: 31
Message-ID: <60utfv$o0t$1@vnetnews.value.net>
References: <01bcbbde$573d4be0$LocalHost AT default>
NNTP-Posting-Host: value.net
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Javier Arriero País <jap AT mundivia DOT es> wrote:

: The inline asm accept pass global variables only referencing them by
: putting an underline character before them, but when I want to pass local
: variables to assembler, a message tells me that there's no a referece to
: the variable.
: I'm also interesting in how to pass arguments.
: Thanks 

Please note that there are a number of tutorials and documents about how
to use local C variables in an inline assembly statement.

First of all, please see the DJGPP FAQ, Section 17.1, and also

info gcc

under

c extensions
extended asm

Also, there is an excellent tutorial by Brennan "Bas" Underwood with lots
of examples of handling local C variables in inline asm; it's also listed
in Section 17.1 of the FAQ. Let's I hope I get it right here:

http://www.rt66.com/~brennan/djgpp/djgpp_asm.html

Most respectfully,

Margo Schulter
mschulter AT value DOT net

- Raw text -


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