Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Nov 2003 10:54:07 +0800
From:      "huayang" <huayang_007@yahoo.com.cn>
To:        "freebsd-newbies@freebsd.org" <freebsd-newbies@freebsd.org>
Message-ID:  <20031127025431.5C20F43FD7@mx1.FreeBSD.org>

next in thread | raw e-mail | index | archive | help
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. 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031127025431.5C20F43FD7>