asm assembly syntax

hgfernan@usp.br hgfernan@usp.br
Tue Jan 27 20:47:00 GMT 1998


On 20 Jan 98 at 8:50,  Ed Eden <edwede@stl082.magnetek.com> 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@delorie.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@usp.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@cygnus.com" with one line of text: "help".



More information about the Cygwin mailing list