delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/06/18/13:35:07

From: Shawn Hargreaves <Shawn AT talula DOT demon DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: names of FPU registers in inline asm?
Date: Fri, 13 Jun 1997 20:22:06 +0100
Organization: None
Distribution: world
Message-ID: <lsCKPLAe3ZozEwCx@talula.demon.co.uk>
References: <5nqddg$2e2$2 AT hecate DOT umd DOT edu>
NNTP-Posting-Host: talula.demon.co.uk
MIME-Version: 1.0
Lines: 15
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Jason Stratos Papadopoulos writes:
>Hello. There are ample resources on the web for inline assembly in
>DJGPP, but very little regarding floating point. I was wondering:
>what are the FPU registers named? st(0),st(1),... or something else?

They are called %st(0), %st(1), etc.

Hint: with any question like this, just write a little C file that does
what you want, compile it with -S, and look at the assembly code output
by gcc. It's by far the best way to figure out how it all works...


--
Shawn Hargreaves - shawn AT talula DOT demon DOT co DOT uk - http://www.talula.demon.co.uk/
Beauty is a French phonetic corruption of a short cloth neck ornament.

- Raw text -


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