From: hgfernan AT usp DOT br Subject: Re: asm assembly syntax 27 Jan 1998 22:20:33 -0800 Message-ID: <9801280213.AA90168.cygnus.gnu-win32@spider.uspnet.usp.br> References: <34C4B9AB DOT 89302E34 AT stl082 DOT magnetek DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT To: Ed Eden , gnu-win32 AT cygnus DOT com Cc: "Fernandes, Hilton" On 20 Jan 98 at 8:50, Ed Eden wrote: > can someone help with syntax conversion for the inline asm directive. > > the visual C++ syntax is > > > __asm { > lea eax,[edx]GLcontext.Current.ByteColor[0] > } > > > the gnu would be > __asm__ (" > lea eax??????? > "); > > > I get an assembly error with the [ ] > Hi! Maybe you'll be interested in the addresses below: - NASM (assembler with Intel syntax) docs: It's in the NASM096.ZIP distribution file (ps, html, winhelp, info, and txt formats) http://www.csv.warwick.ac.uk/~csusb/nasm/ - the group news://comp.os.msdos.djgpp, or the mailing list djgpp AT delorie DOT com is a good reference for assembly programming using the AT&T syntax; it is composed of game programmers that use x86 assembly language in the context of a gcc-based compiler for MS-DOS. - in the homepage of this group, at http://www.delorie.com, you'll find links to tutorials of the AT&T syntax. HTH. ++Hilton ------------------- Hilton Fernandes email: hgfernan AT usp DOT br www: http://www.lsi.usp.br/~hilton.html (inactive) M. Sc. Student of Parallel Distributed Applications at Escola Politecnica (Polytechic School) University of S. Paulo - Brazil - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request AT cygnus DOT com" with one line of text: "help".