www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/03/16/19:12:23

From: Damon Hogan <damonh AT pgmincorporated DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: 388: fixed or forbidden register 0 (ax) was spilled for class AREG.
fly.
Date: Thu, 16 Mar 2000 15:28:50 -0700
Organization: XMission http://www.xmission.com/
Lines: 54
Message-ID: <38D16022.7C4C048@pgmincorporated.com>
References: <Pine DOT SUN DOT 3 DOT 91 DOT 1000316120627 DOT 3117T-100000 AT is> <38D11ABD DOT B614B5F7 AT pgmincorporated DOT com>
NNTP-Posting-Host: mail.pgmincorporated.com
Mime-Version: 1.0
X-Trace: news.xmission.com 953245982 29811 166.70.119.101 (16 Mar 2000 22:33:02 GMT)
X-Complaints-To: abuse AT xmission DOT com
NNTP-Posting-Date: 16 Mar 2000 22:33:02 GMT
X-Mailer: Mozilla 4.6 [en] (Win98; I)
X-Accept-Language: en
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

I figured out how to re-write the code.

Never mind on this one.  It compiles fine now.

Damon Hogan wrote:

> You are right about one thing.  Inline assembly code is mentioned in 8.17 of
> the FAQ however my specific problem was not mentioned and I was asking for
> help from someone who knows how to modify the code or fix the problem with
> djgpp.  The FAQ simply says the code is not written correctly for djgpp if it
> is even related to my same problem.
>
> But thanks for your help anyway.  At least you responded to my message.
>
> Eli Zaretskii wrote:
>
> > On Wed, 15 Mar 2000, Damon Hogan wrote:
> >
> > > I am compiling the fly.exe program for the plush3d library and I get the
> > > following error messages. I get the same error messages on other
> > > libraries,/programs that I try to compile with inline assembly code.  I
> > > think that this is a problem with djgpp's gcc I'm
> > > not sure.
> > >
> > > fly.c: In function `main': fly.
> > > c:55: warning: return type of `main' is not `int' fly.
> > > c: In function `mouse_init': fly.
> > > c:388: Invalid `asm' statement: fly.
> > > c:388: fixed or forbidden register 0 (ax) was spilled for class AREG.
> >
> > No, it's a problem with the inline assembly you are compiling.  See
> > section 8.17 of the DJGPP FAQ for details.
>
> --
> Damon Hogan
> Sr Programmer/Analyst
> PGM, Inc.
> damonh AT pgmincorporated DOT com
> http://www.pgmincorporated.com
> http://www.pgmincorporated.com/site-imgs/dh.gif
> Voice (801) 434-4054 /Voice Mail
> Fax    (801) 434-7304

--
Damon Hogan
Sr Programmer/Analyst
PGM, Inc.
damonh AT pgmincorporated DOT com
http://www.pgmincorporated.com
http://www.pgmincorporated.com/site-imgs/dh.gif
Voice (801) 434-4054 /Voice Mail
Fax    (801) 434-7304


- Raw text -


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