change labels from global to local in functions, align function calls in stack
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user