git://git.onelab.eu
/
bootcd.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
syslinux-3.08-2 sources from FC4
[bootcd.git]
/
syslinux
/
dos
/
memcpy.S
1
# $Id: memcpy.S,v 1.2 2004/12/17 10:03:47 hpa Exp $
2
#
3
# memcpy.S
4
#
5
# Simple 16-bit memcpy() implementation
6
#
7
8
.text
9
.code16gcc
10
.globl memcpy
11
.type memcpy, @function
12
memcpy:
13
cld
14
pushw %di
15
pushw %si
16
movw %ax,%di
17
movw %dx,%si
18
# The third argument is already in cx
19
rep ; movsb
20
popw %si
21
popw %di
22
ret
23
24
.size memcpy,.-memcpy