www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/01/05/17:36:58

Date: Tue, 5 Jan 1999 23:28:47 +0100 (MET)
From: Wojciech Piechowski <voyt AT ds2 DOT pg DOT gda DOT pl>
To: djgpp AT delorie DOT com
Subject: Re: asm problem
In-Reply-To: <01be38ea$dcd4f840$0100007f@localhost>
Message-ID: <Pine.GSO.3.96.990105232407.1175A-100000@delta.ds2.pg.gda.pl>
MIME-Version: 1.0
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

- Raw text -


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