# $Id: memset.S,v 1.1 2004/12/15 19:01:38 hpa Exp $
#
# memset.S
#
# Minimal 16-bit memset() implementation
#

	.text
	.code16
	.globl memset
	.type memset, @function
memset:
	cld
	pushl %edi
	movw 8(%esp),%di
	movb 12(%esp),%al
	movw 16(%esp),%cx
	rep ; stosb
	popl %edi
	ret

	.size memset,.-memset
