diff options
Diffstat (limited to 'ft_list_size.s')
| -rw-r--r-- | ft_list_size.s | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/ft_list_size.s b/ft_list_size.s index 0d80bd9..31fa613 100644 --- a/ft_list_size.s +++ b/ft_list_size.s @@ -21,12 +21,12 @@ global M_FT_LIST_SIZE section .text ; int ft_list_size(t_list *begin_list); M_FT_LIST_SIZE: - xor eax, eax + xor eax, eax FT_LIST_SIZE_LOOP: - cmp rdi, 0 - je FT_LIST_SIZE_END - inc eax - mov rdi, [rdi + 8] - jmp FT_LIST_SIZE_LOOP + cmp rdi, 0 + je FT_LIST_SIZE_END + inc eax + mov rdi, [rdi + 8] + jmp FT_LIST_SIZE_LOOP FT_LIST_SIZE_END: - ret + ret |
