feat: ft_strlen
This commit is contained in:
parent
fd2d720094
commit
e41fd99ce1
|
@ -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
|
Loading…
Reference in New Issue