delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/04/26/21:29:29

Message-ID: <3AE8B6EB.A9D73989@caresystems.com.au>
From: leon <leon AT caresystems DOT com DOT au>
X-Mailer: Mozilla 4.75 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: any interpretations in as?
Lines: 18
NNTP-Posting-Host: kalima.ozemail.com.au
X-Trace: ozemail.com.au 988330076 203.108.63.158 (Fri, 27 Apr 2001 10:07:56 EST)
NNTP-Posting-Date: Fri, 27 Apr 2001 10:07:56 EST
Organization: OzEmail Ltd, Australia
Distribution: world
Date: Fri, 27 Apr 2001 10:01:47 +1000
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

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
}

- Raw text -


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