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,9 +1,10 @@
extern _strcmp
global ft_strcmp
extern _malloc
_strcmp:
ft_strcmp:
xor rax, rax
xor rbx, rbx
.count:
mov rax, [rdi + rbx]
sub rax, [rsi + rbx]
@@ -13,4 +14,4 @@ _strcmp:
jmp .count
.end:
ret
ret