Mail Archives: djgpp/1999/01/05/15:37:48
From: | "Luiz Fernando Estivalet" <luisoft AT myway DOT com DOT br>
|
To: | <djgpp AT delorie DOT com>
|
Subject: | asm problem
|
Date: | Tue, 5 Jan 1999 18:34:59 -0200
|
Message-ID: | <01be38ea$dcd4f840$0100007f@localhost>
|
MIME-Version: | 1.0
|
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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
<HTML>
<HEAD>
<META content=3Dtext/html;charset=3Diso-8859-1 =
http-equiv=3DContent-Type>
<META content=3D'"MSHTML 4.71.1712.3"' name=3DGENERATOR>
</HEAD>
<BODY bgColor=3D#b8b8b8>
<DIV>Hi.<BR><BR> i've tried to convert the below =
functiom to=20
DJGPP and AT&T format, but<BR>with no results...<BR>could anybody =
translate=20
those asm statements to AT&T formatt ?<BR><BR>Thanks ,<BR><BR>Luiz=20
Fernando<BR><BR>void Flip(unsigned char far *source,unsigned char far =
*dest,=20
unsigned int<BR>num_bytes)<BR>{<BR>_asm =20
{<BR>push ds<BR>les di, [dest]<BR>lds si,=20
[source]<BR>mov cx,=20
[num_bytes]<BR>rep =
movsw<BR>pop =20
ds<BR>}<BR>}<BR><BR><BR> </DIV></BODY></HTML>
------=_NextPart_000_001C_01BE38DA.194C2840--
- Raw text -