add ft_list_sort

This commit is contained in:
2025-04-06 01:39:39 +02:00
parent 34b139c60b
commit 919948abe9
11 changed files with 163 additions and 86 deletions

View File

@ -5,20 +5,20 @@ ft_strcmp:
xor rax, rax
test rdi, rdi ; test if args are false
je err
jz err
test rsi, rsi
je err
jz err
loop_start:
mov al, [rdi]
cmp al, [rsi]
jne compare
test al, al ; test if rdi is \0
je compare
jz compare
mov al, [rsi] ; test if rsi is \0
test al, al
je compare
jz compare
lea rsi, [rsi + 1]
lea rdi, [rdi + 1]