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,15 +5,14 @@ section .text
ft_list_size:
xor rax, rax
count_start:
.count_start:
test rdi, rdi
jz end
jz .end
mov rdi, [rdi + 8]
inc rax
lea rax, [rax + 1]
jmp .count_start
jmp count_start
end:
.end:
ret