summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/dietlibc/i386/memcpy.S
blob: cbe74459f9471d7cd132adfe9b63739f8251e79a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
.text
.align 0 
.global memcpy
.type	 memcpy,@function
memcpy:
	pushl %esi
	pushl %edi
	movl 12(%esp),%edi
	movl 16(%esp),%esi
	movl 20(%esp),%ecx
	movl %edi, %eax
	cld
	rep movsb
	popl %edi
	popl %esi
	ret