feat: ft_strlen

This commit is contained in:
gbrochar 2024-02-24 08:17:30 +01:00
parent fd2d720094
commit e41fd99ce1
1 changed files with 11 additions and 0 deletions

11
ft_strlen.s Normal file
View File

@ -0,0 +1,11 @@
global ft_strlen
ft_strlen:
xor rax, rax
.loop:
cmp byte [rdi + rax], 0
je .done
inc rax
jmp .loop
.done:
ret