-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_memcpy.s
25 lines (21 loc) · 1.03 KB
/
ft_memcpy.s
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# **************************************************************************** #
# #
# ::: :::::::: #
# ft_memcpy.s :+: :+: :+: #
# +:+ +:+ +:+ #
# By: alaulom <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2016/01/20 16:25:39 by alaulom #+# #+# #
# Updated: 2016/02/20 15:42:33 by alaulom ### ########.fr #
# #
# **************************************************************************** #
;void *ft_memcpy(void *dst, const void *src, size_t n);
global _ft_memcpy
section .text
_ft_memcpy:
push rdi
mov rcx, rdx
cld
rep movsb
pop rax
ret