13 lines
130 B
ArmAsm
13 lines
130 B
ArmAsm
|
global ft_list_size
|
||
|
|
||
|
ft_list_size:
|
||
|
xor rax, rax
|
||
|
.loop:
|
||
|
cmp rdi, 0
|
||
|
je .done
|
||
|
mov rdi, [rdi + 8]
|
||
|
inc rax
|
||
|
jmp .loop
|
||
|
.done:
|
||
|
ret
|