This repository has been archived on 2023-08-20. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
RescueBootCD/extra/syslinux-3.09/dos/memset.S

23 lines
315 B
ArmAsm

# $Id: memset.S,v 1.2 2004/12/17 10:03:47 hpa Exp $
#
# memset.S
#
# Minimal 16-bit memset() implementation
#
.text
.code16gcc
.globl memset
.type memset, @function
memset:
cld
pushw %di
movw %ax,%di
movb %dl,%al
# The third argument is already in %cx
rep ; stosb
popw %di
retl
.size memset,.-memset