(no subject)

From: huayang (huayang_007_at_yahoo.com.cn)
Date: 11/27/03

  • Next message: danu kusmana: "problems"
    Date: Thu, 27 Nov 2003 10:54:07 +0800
    To: "freebsd-newbies@freebsd.org" <freebsd-newbies@freebsd.org>
    
    

    hi,
            static inline char * strcpy(char * dest,const char *src)
    {
    int d0, d1, d2;
    __asm__ __volatile__(
            "1:\tlodsb\n\t"
            "stosb\n\t"
            "testb %%al,%%al\n\t"
            "jne 1b"
            : "=&S" (d0), "=&D" (d1), "=&a" (d2)
            :"0" (src),"1" (dest) : "memory");
    return dest;
    }
    Here " & ", in " =&S" is what meaning.

    _______________________________________________
    freebsd-newbies@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-newbies
    To unsubscribe, send any mail to "freebsd-newbies-unsubscribe@freebsd.org"


  • Next message: danu kusmana: "problems"