-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_strcpy.s
28 lines (25 loc) · 1.06 KB
/
ft_strcpy.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
;# **************************************************************************** #
;# #
;# ::: :::::::: #
;# ft_strcpy.s :+: :+: :+: #
;# +:+ +:+ +:+ #
;# By: mviudes <mviudes@student.42madrid.com> +#+ +:+ +#+ #
;# +#+#+#+#+#+ +#+ #
;# Created: 2021/01/22 13:51:26 by mviudes #+# #+# #
;# Updated: 2021/02/02 12:15:19 by mviudes ### ########.fr #
;# #
;# **************************************************************************** #
global _ft_strcpy
section .text
_ft_strcpy:
mov rcx, 0
_while:
mov dl, BYTE [rsi + rcx]
mov BYTE[rdi + rcx], dl
inc rcx
cmp dl,0
jne _while
jmp exit
exit:
mov rax, rdi
ret