Fixed a lot of segfaults and bad practices
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user