LPM: Assembler and Linux

David Pitts dpitts at mk.net
Thu Jun 8 10:40:52 CDT 2000


I know that this is neither an assembler nor a linux mailing list, but it is
a bunch of smart people who do computer geek type stuff (meant as a
compliment!), and thought you might know where to go with this one.

Attached is an e-mail from an assember programmer in India who is havin
problems with some of the new syntaxes for Linux.... anyone know what they
are or where to get information about them?  Anyone even know assembler??

Thanks,

David
David Pitts
President, Pitts Technical Resources, Inc
(859) 552-3262
www.dpitts.com
dpitts at mk.net
----- Original Message -----
From: "Ritesh Kumar" <riteshbit at yahoo.com>
To: <dpitts at mk.net>
Cc: <rajeevranjan125 at usa.net>
Sent: Thursday, June 08, 2000 11:33 AM
Subject: query


> Dear sir,
> I am a software engg. dealing with assembly lang.
> prog.
> for last few yrs in a reputed software firm in India.
> Recently I had your Red hat linux installed in my
> system.
> The i-486 progg. under linux contains many syntaxes
> which are
> new and not in accordance with the assembly progg.
> as supported by MASM assembler.
>
> This is posing a great difficulty to me as no book
> is available to deal with these.So,I request you to
> kindly explain
> these new syntaxes in detail.I am sending an example
> code with
> such new syntaxes.It is from file
> segment.h(./usr/include/linux/asm)
> I will be very thankful to you for your kind help.
> thanking you,
> Ritesh kumar
> (riteshbit at yahoo.com)
> code  are as follows:
> ======================================================
>
>
>  Static inline void __generic_memcpy_tofs(void
> *to,void *from,unsigned long n)
>  {
>   __asm__volatile
>      (" cld
>         push %%es
>         push %%fs
>         cmpl $3,%0
>         pop %%es
>         jbe 1f
>         movl %%edi,%%ecx
>         negl %%ecx
>         andl $3,%%ecx
>         subl %%ecx,%0
>         rep; movsb
>         movl %0,%%ecx
>         shrl $2,%%ecx
>         rep; movsl
>         andl $3,%0
>     1:  movl %0,%%ecx
>         rep; movsb
>         pop %%es "
>      :"abd" (n)
>      :"0"(n),"D"((long)to),"S" ((long)from)
>      :"cx","di"."si");
> =======================================================
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Photos -- now, 100 FREE prints!
> http://photos.yahoo.com
>




More information about the Lexington-pm mailing list