delorie.com/archives/browse.cgi   search  
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>&nbsp;&nbsp;&nbsp; i've tried to convert the below =
functiom to=20
DJGPP and AT&amp;T format, but<BR>with no results...<BR>could anybody =
translate=20
those asm statements to AT&amp;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&nbsp;&nbsp;&nbsp;&nbsp;=20
{<BR>push&nbsp;&nbsp;&nbsp; ds<BR>les di, [dest]<BR>lds si,=20
[source]<BR>mov&nbsp;&nbsp;&nbsp;&nbsp; cx,=20
[num_bytes]<BR>rep&nbsp;&nbsp;&nbsp;&nbsp; =
movsw<BR>pop&nbsp;&nbsp;&nbsp;&nbsp;=20
ds<BR>}<BR>}<BR><BR><BR>&nbsp;</DIV></BODY></HTML>

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

- Raw text -


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