From: "Luiz Fernando Estivalet" To: Subject: asm problem Date: Tue, 5 Jan 1999 18:34:59 -0200 Message-ID: <01be38ea$dcd4f840$0100007f@localhost> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_001C_01BE38DA.194C2840" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 4.71.1712.3 X-MimeOLE: Produced By Microsoft MimeOLE V4.71.1712.3 Reply-To: djgpp AT delorie DOT com This is a multi-part message in MIME format. ------=_NextPart_000_001C_01BE38DA.194C2840 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable 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 } } ------=_NextPart_000_001C_01BE38DA.194C2840 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi.

    i've tried to convert the below = functiom to=20 DJGPP and AT&T format, but
with no results...
could anybody = translate=20 those asm statements to AT&T formatt ?

Thanks ,

Luiz=20 Fernando

void Flip(unsigned char far *source,unsigned char far = *dest,=20 unsigned int
num_bytes)
{
_asm    =20 {
push    ds
les di, [dest]
lds si,=20 [source]
mov     cx,=20 [num_bytes]
rep     = movsw
pop    =20 ds
}
}


 
------=_NextPart_000_001C_01BE38DA.194C2840--