change labels from global to local in functions, align function calls in stack

This commit is contained in:
2025-08-06 20:10:05 +02:00
parent 2a65c14032
commit caa21a3fb0
11 changed files with 119 additions and 108 deletions

View File

@ -5,19 +5,19 @@ section .text
ft_list_push_front:
test rdi, rdi
jz err
jz .err
push rdi
push rsi
sub rsp, 8
mov rdi, 16
sub rsp, 8
call malloc wrt ..plt
add rsp, 8
pop rsi
pop rdi
test rax, rax ; did malloc return 0
jz err
jz .err
push rdi
mov rdi, [rdi]
@ -27,5 +27,5 @@ ft_list_push_front:
mov [rdi], rax
err:
.err:
ret