mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-12-14 10:57:08 +03:00
ace23ebbe2
git-svn-id: svn://kolibrios.org@6433 a494cfbc-eb01-0410-851d-a64ba20cac60
16 lines
221 B
NASM
16 lines
221 B
NASM
format ELF
|
|
section '.text' executable
|
|
public memset
|
|
memset:
|
|
push edi
|
|
mov edi,[esp+8]
|
|
mov eax,[esp+12]
|
|
mov ecx,[esp+16]
|
|
jecxz .no_set
|
|
cld
|
|
rep stosb
|
|
.no_set:
|
|
mov eax, [esp+8]
|
|
pop edi
|
|
ret
|