summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/dietlibc/i386/stpcpy.S
blob: 1cb74b2ea06da7c7fb6b5d6b60429c0fec72c165 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
.text
.global stpcpy
.type	stpcpy,@function
stpcpy:
	pushl %edi
	pushl %esi
	movl 0xc(%esp),  %edi
	movl 0x10(%esp), %esi

.Lcopy:
	lodsb
	stosb
	testb %al, %al
	jnz .Lcopy

	movl %edi, %eax
	decl %eax
	popl %esi
	popl %edi
	ret
.Lende:
.size stpcpy,.Lende-stpcpy