12 lines
117 B
ArmAsm
12 lines
117 B
ArmAsm
|
global ft_strlen
|
||
|
|
||
|
ft_strlen:
|
||
|
xor rax, rax
|
||
|
.loop:
|
||
|
cmp byte [rdi + rax], 0
|
||
|
je .done
|
||
|
inc rax
|
||
|
jmp .loop
|
||
|
.done:
|
||
|
ret
|