File:  [DVB] / dietlibc / i386 / strcpy.S
Revision 1.2: download - view: text, annotated - select for diffs
Thu Aug 23 16:39:18 2001 UTC (22 years, 9 months ago) by fefe
Branches: MAIN
CVS tags: finnland_test_200301, branch_rc14_fieldtest_finnland, branch_rc13_fieldtest_finnland, branch_rc12_fieldtest_finnland, branch_rc10_fieldtest_finnland, RELEASE_finnland_200301_1, RC12_FIELDTEST_FINNLAND, RC10_FIELDTEST_FINNLAND, HEAD
uh-oh, don't clobber ebx on x86!


.text
.align 0 
.global strcpy
.type	 strcpy,@function
strcpy:
	pushl %esi
	pushl %edi
	
	movl 12(%esp), %edx
	movl 16(%esp), %esi
	movl %edx, %edi
	cld

.Lloop:
	lodsb
	stosb
	orb %al, %al
	jnz .Lloop

	popl %edi
	popl %esi
	movl %edx,%eax
	ret

LinuxTV legacy CVS <linuxtv.org/cvs>