Mail Archives: djgpp/1999/01/05/17:36:58
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
- Raw text -