42_libasm/ft_strlen.asm
2024-08-07 17:42:16 +02:00

12 lines
185 B
NASM

section .text
global ft_strlen
ft_strlen:
mov rax, 0
loop:
cmp BYTE [rdi + rax], 0
je out
inc rax
jmp loop
out:
ret