Message-ID: <3AE8C9DE.FB28871A@caresystems.com.au> From: leon X-Mailer: Mozilla 4.75 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp Subject: Re: any interpretations in as? References: <3AE8B6EB DOT A9D73989 AT caresystems DOT com DOT au> <9cafvo$qgg$1 AT node17 DOT cwnet DOT frontiernet DOT net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 36 NNTP-Posting-Host: kalima.ozemail.com.au X-Trace: ozemail.com.au 988334927 203.108.63.158 (Fri, 27 Apr 2001 11:28:47 EST) NNTP-Posting-Date: Fri, 27 Apr 2001 11:28:47 EST Organization: OzEmail Ltd, Australia Distribution: world Date: Fri, 27 Apr 2001 11:22:38 +1000 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com i have - it mentions not of floating point actions and or registers ala fsubl and then fistpl - just would appreciate an example translation of posted text... "Alexei A. Frounze" wrote: > > "leon" 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/