add list remove if and fix valgrind error

This commit is contained in:
2025-04-12 19:07:44 +02:00
parent 919948abe9
commit 2adeac70ce
7 changed files with 144 additions and 12 deletions

View File

@ -7,18 +7,16 @@ ft_strcpy:
test rsi, rsi
jz err
push rdi
jmp loop_start
condition_check:
mov al, [rdi]
test al, al
jz end
loop_start:
mov rax, [rsi]
mov [rdi], rax
mov al, [rsi]
mov [rdi],al
lea rdi, [rdi + 1]
lea rsi, [rsi + 1]
jmp condition_check
test al, al
jne loop_start
end:
pop rax