repo.or.cz
/
syslinux.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
mbr/isohdpfx.S: correct pointer for heads/sectors
[syslinux.git]
/
dos
/
memset.S
blob
86e12ab29940d8cb2e5a881136eb4606e1055155
1
#
2
# memset.S
3
#
4
# Minimal 16-bit memset() implementation
5
#
6
7
.text
8
.code16gcc
9
.globl memset
10
.type memset, @function
11
memset:
12
cld
13
pushw %di
14
movw %ax,%di
15
movb %dl,%al
16
# The third argument is already in %cx
17
rep ; stosb
18
popw %di
19
retl
20
21
.size memset,.-memset