diff options
| author | Charles <sircharlesaze@gmail.com> | 2020-04-12 19:54:39 +0200 |
|---|---|---|
| committer | Charles <sircharlesaze@gmail.com> | 2020-04-12 19:54:39 +0200 |
| commit | 8529228d532fffedf20fc892467c7676121f219a (patch) | |
| tree | 472d86a454ba9402affdf0e8edd8cc3c47b0f4c1 /ft_list_remove_if.s | |
| parent | 28424105e255f0a4c887b6e6a83afd6dce372709 (diff) | |
| parent | 94d61d8aaee7a3df0dc1f055e27e0f4484cb3ffa (diff) | |
| download | libasm-8529228d532fffedf20fc892467c7676121f219a.tar.gz libasm-8529228d532fffedf20fc892467c7676121f219a.tar.bz2 libasm-8529228d532fffedf20fc892467c7676121f219a.zip | |
Added change in ft_write, ft_readlinux
Diffstat (limited to 'ft_list_remove_if.s')
| -rw-r--r-- | ft_list_remove_if.s | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ft_list_remove_if.s b/ft_list_remove_if.s index 5a2fd8b..40e2415 100644 --- a/ft_list_remove_if.s +++ b/ft_list_remove_if.s @@ -10,7 +10,7 @@ ; ; ; **************************************************************************** ; -global _ft_list_remove_if +global ft_list_remove_if extern _free @@ -33,7 +33,7 @@ extern _free ; ft_list_remove_if(t_list **begin_list, void *data_ref, ; int (*cmp)(void *data, void *data_ref), ; void (*free_fct)(void *)) -_ft_list_remove_if: +ft_list_remove_if: ; t_list *saved_next ; === prolog === @@ -50,7 +50,7 @@ _ft_list_remove_if: ; === compare (*begin_list)->data and data_ref EXTERN_FUNCTION_SAVE mov rdi, [rdi] - mov rdi, [rdi + 0] + mov rdi, [rdi + 0] call rdx ; cmp((*begin_list)->data, data_ref) EXTERN_FUNCTION_SAVE_END cmp rax, 0 @@ -60,7 +60,7 @@ _ft_list_remove_if: push rdi mov rdi, [rdi] lea rdi, [rdi + 8] - call _ft_list_remove_if + call ft_list_remove_if pop rdi jmp FT_LIST_REMOVE_IF_END @@ -85,7 +85,7 @@ FT_LIST_REMOVE_IF_REMOVE: mov rax, [rbp - 8] mov [rdi], rax - call _ft_list_remove_if + call ft_list_remove_if FT_LIST_REMOVE_IF_END: ; === epilog === |
