mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-12-18 21:02:34 +03:00
51d395d0cc
git-svn-id: svn://kolibrios.org@145 a494cfbc-eb01-0410-851d-a64ba20cac60
16 lines
235 B
NASM
16 lines
235 B
NASM
format ELF
|
|
section '.text' executable
|
|
public memcpy
|
|
public memmove
|
|
memcpy:
|
|
memmove:
|
|
push esi edi
|
|
mov edi,[esp+12]
|
|
mov esi,[esp+16]
|
|
mov ecx,[esp+20]
|
|
jecxz .no_copy
|
|
cld
|
|
rep movsb
|
|
.no_copy:
|
|
pop edi esi
|
|
ret |