-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_strcat.s
More file actions
35 lines (28 loc) · 1.16 KB
/
ft_strcat.s
File metadata and controls
35 lines (28 loc) · 1.16 KB
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
32
33
34
; **************************************************************************** ;
; ;
; ::: :::::::: ;
; ft_strcat.s :+: :+: :+: ;
; +:+ +:+ +:+ ;
; By: vtarasiu <vtarasiu@student.unit.ua> +#+ +:+ +#+ ;
; +#+#+#+#+#+ +#+ ;
; Created: 2019/07/19 14:23:52 by vtarasiu #+# #+# ;
; Updated: 2019/07/19 16:01:16 by vtarasiu ### ########.fr ;
; ;
; **************************************************************************** ;
global _ft_strcat
extern _ft_strlen
_ft_strcat:
push rbp
mov rbp, rsp
push rdi
push rsi
call _ft_strlen
mov rcx, rax
inc rcx
repe scasb
rep movsb
pop rsi
pop rdi
mov rax, rdi
pop rbp
ret