syslinux-3.08-2 sources from FC4
[bootcd.git] / syslinux / dos / memset.S
1 # $Id: memset.S,v 1.2 2004/12/17 10:03:47 hpa Exp $
2 #
3 # memset.S
4 #
5 # Minimal 16-bit memset() implementation
6 #
7
8         .text
9         .code16gcc
10         .globl memset
11         .type memset, @function
12 memset:
13         cld
14         pushw %di
15         movw %ax,%di
16         movb %dl,%al
17         # The third argument is already in %cx
18         rep ; stosb
19         popw %di
20         retl
21
22         .size memset,.-memset