aboutsummaryrefslogtreecommitdiff
path: root/ft_list_push_front.s
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2019-11-25 03:37:45 +0100
committerCharles <sircharlesaze@gmail.com>2019-11-25 03:37:45 +0100
commit9af248e8a78f111a39d507f199d56eb8af6e52d6 (patch)
tree4b86561a5fea5f22d8d51c5b2a029cad98feaa25 /ft_list_push_front.s
parentc0bcb694bbcef0273d6e6fa93854ce6a10432b87 (diff)
downloadlibasm-9af248e8a78f111a39d507f199d56eb8af6e52d6.tar.gz
libasm-9af248e8a78f111a39d507f199d56eb8af6e52d6.tar.bz2
libasm-9af248e8a78f111a39d507f199d56eb8af6e52d6.zip
ft_atoi_base.s kinda done
Diffstat (limited to 'ft_list_push_front.s')
-rw-r--r--ft_list_push_front.s32
1 files changed, 16 insertions, 16 deletions
diff --git a/ft_list_push_front.s b/ft_list_push_front.s
index 835aa2c..686ee10 100644
--- a/ft_list_push_front.s
+++ b/ft_list_push_front.s
@@ -1,22 +1,22 @@
-# **************************************************************************** #
-# #
-# ::: :::::::: #
-# ft_list_push_front.s :+: :+: :+: #
-# +:+ +:+ +:+ #
-# By: cacharle <marvin@42.fr> +#+ +:+ +#+ #
-# +#+#+#+#+#+ +#+ #
-# Created: 2019/11/22 20:55:08 by cacharle #+# #+# #
-# Updated: 2019/11/22 21:17:45 by cacharle ### ########.fr #
-# #
-# **************************************************************************** #
+; **************************************************************************** ;
+; ;
+; ::: :::::::: ;
+; ft_list_push_front.s :+: :+: :+: ;
+; +:+ +:+ +:+ ;
+; By: cacharle <marvin@42.fr> +#+ +:+ +#+ ;
+; +#+#+#+#+#+ +#+ ;
+; Created: 2019/11/22 20:55:08 by cacharle #+# #+# ;
+; Updated: 2019/11/22 21:17:45 by cacharle ### ########.fr ;
+; ;
+; **************************************************************************** ;
-.globl _ft_list_push_front
+global _ft_list_push_front
-# void ft_list_push_front(t_list **begin_list, void *data);
+; void ft_list_push_front(t_list **begin_list, void *data);
_ft_list_push_front:
cmp rdi, 0
- je FT_LIST_PUSH_FRONT_END
+ je FT_LIST_PUSH_FRONT_END
mov [rsi + 8], [rdi]
mov [rdi], rsi
- FT_LIST_PUSH_FRONT_END:
- ret
+FT_LIST_PUSH_FRONT_END:
+ ret