Initial commit : Added ft_strlen

This commit is contained in:
2024-03-05 22:27:39 +01:00
commit e4597a684c
2 changed files with 14 additions and 0 deletions

3
.gitignore vendored Normal file
View File

@@ -0,0 +1,3 @@
*.o
*.c
*.out

11
ft_strlen.s Normal file
View File

@@ -0,0 +1,11 @@
global _strlen
_strlen:
xor rax, rax
.cmp_char:
cmp byte [rdi + rax], 0
je .end
inc rax
jmp .cmp_char
.end:
ret