Fixed a lot of segfaults and bad practices

This commit is contained in:
2024-03-18 10:12:30 +01:00
parent c8170cfd3e
commit ddabaeba7f
10 changed files with 146 additions and 15 deletions

View File

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