Date: Tue, 5 Jan 1999 23:28:47 +0100 (MET) From: Wojciech Piechowski To: djgpp AT delorie DOT com Subject: Re: asm problem In-Reply-To: <01be38ea$dcd4f840$0100007f@localhost> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com On Tue, 5 Jan 1999, Luiz Fernando Estivalet wrote: > Hi. > > i've tried to convert the below functiom to DJGPP and AT&T format, but > with no results... > could anybody translate those asm statements to AT&T formatt ? > > Thanks , > > Luiz Fernando > > void Flip(unsigned char far *source,unsigned char far *dest, unsigned int > num_bytes) > { > _asm { > push ds > les di, [dest] > lds si, [source] > mov cx, [num_bytes] > rep movsw > pop ds > } > } Since this function does not contain any C code (pure assembler), you should consider writing it as separate asm module. Then you could use NASM (quite pleasant assembler with the well-known Intel syntax) and wouldn't have to learn the AT&T convention. --------------------\ Wojciech Piechowski /---------------------------- Student informatyki \ voyt AT ds2 DOT pg DOT gda DOT pl / Student of computer science Politechnika Gdanska \________________/ Technical University of Gdansk