delorie.com/archives/browse.cgi | search |
From: | "Ken Jenkins" <ken DOT jen AT adelphia DOT net> |
Newsgroups: | comp.os.msdos.djgpp |
References: | <19199N442 AT web2news DOT com> |
Subject: | Re: Easy question about an error message. |
Lines: | 29 |
X-Priority: | 3 |
X-MSMail-Priority: | Normal |
X-Newsreader: | Microsoft Outlook Express 6.00.2800.1106 |
X-MimeOLE: | Produced By Microsoft MimeOLE V6.00.2800.1106 |
Message-ID: | <qieca.914$z_3.444040@news1.news.adelphia.net> |
Date: | Fri, 14 Mar 2003 06:05:10 GMT |
NNTP-Posting-Host: | 68.64.172.34 |
X-Complaints-To: | abuse AT adelphia DOT net |
X-Trace: | news1.news.adelphia.net 1047621910 68.64.172.34 (Fri, 14 Mar 2003 01:05:10 EST) |
NNTP-Posting-Date: | Fri, 14 Mar 2003 01:05:10 EST |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
You can only access global variables in DJGPP assembly. In extended DJGPP assembly, you can access variables you pass in, via the registers. Or with g, q and r, %0 - %9. "Joel_S" <jbs30000 DOT news DOT invalid AT web2news DOT net> wrote in message news:19199N442 AT web2news DOT com... > I know all about math.h, but I'm fooling around with FPU commands > anyway. So, for this code... > #include<math.h> > #include<stdio.h> > float A, B, floatsin(float Value); > main() > { > A = floatsin(B); > return 0; > } > float floatsin(float Value) > { > asm ("flds _Value\n\t" > "fsin\n\t" > "fstp %st(0)"); > } > Why do I get this error message? > Error: undefined reference to `_Value' > -- > Direct access to this group with http://web2news.com > http://web2news.com/?comp.os.msdos.djgpp
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |