delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/04/26/23:13:18

From: "Alexei A. Frounze" <dummy_addressee AT hotmail DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: any interpretations in as?
Date: Thu, 26 Apr 2001 20:55:08 -0400
Organization: Global Crossing Telecommunications
Lines: 33
Sender: UNKNOWN AT 209-130-218-144 DOT nas1 DOT roc DOT gblx DOT net
Message-ID: <9cafvo$qgg$1@node17.cwnet.frontiernet.net>
References: <3AE8B6EB DOT A9D73989 AT caresystems DOT com DOT au>
NNTP-Posting-Host: 209-130-218-144.nas1.roc.gblx.net
X-Trace: node17.cwnet.frontiernet.net 988332856 27152 209.130.218.144 (27 Apr 2001 00:54:16 GMT)
X-Complaints-To: abuse AT frontiernet DOT net
NNTP-Posting-Date: 27 Apr 2001 00:54:16 GMT
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

"leon" <leon AT caresystems DOT com DOT au> wrote in message
news:3AE8B6EB DOT A9D73989 AT caresystems DOT com DOT au...
> Hi all, just wondered for the sake of learning gcc assembler inline
> syntax, if anyone can provide some interpretations/translations of the
> following intel style assembly code as it would be written in AT&T sytle
> syntax. As one gathers, we need to store inputs in floating registers,
> etc.?
>
> int test(double flt)
> {
> int i;
> double half = 0.5;
> _asm
> {
> fld flt
> fsub half
> fistp i
> }
> return i
> }

see a tutorial in the online documentation section at www.delorie.com/djgpp/

Good Luck
--
Alexei A. Frounze
alexfru [AT] chat [DOT] ru
http://alexfru.chat.ru
http://members.xoom.com/alexfru/
http://welcome.to/pmode/



- Raw text -


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