-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_memcpy.s
32 lines (26 loc) · 1.05 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
26
27
28
29
30
31
# **************************************************************************** #
# #
# ::: :::::::: #
# ft_memcpy.s :+: :+: :+: #
# +:+ +:+ +:+ #
# By: edelangh <edelangh@student.42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2015/03/24 14:53:22 by edelangh #+# #+# #
# Updated: 2015/03/30 13:21:46 by edelangh ### ########.fr #
# #
# **************************************************************************** #
section .text
global _ft_memcpy
; rdi rsi rdx
_ft_memcpy:
enter 8, 0
mov rax, rdi
mov rcx, rdx
cmp rdi, 0
je end
cmp rsi, 0
je end
rep movsb
end:
leave
ret