From c90117251f11e03452ae9808ff8626016c7958a1 Mon Sep 17 00:00:00 2001 From: Charles Date: Sat, 23 Nov 2019 00:28:03 +0100 Subject: Compiling with nasm --- ft_strdup.s | 30 +++++++++++++++++------------- 1 file changed, 17 insertions(+), 13 deletions(-) (limited to 'ft_strdup.s') diff --git a/ft_strdup.s b/ft_strdup.s index d96ad3b..fa28326 100644 --- a/ft_strdup.s +++ b/ft_strdup.s @@ -1,18 +1,22 @@ -# **************************************************************************** # -# # -# ::: :::::::: # -# ft_strdup.s :+: :+: :+: # -# +:+ +:+ +:+ # -# By: cacharle +#+ +:+ +#+ # -# +#+#+#+#+#+ +#+ # -# Created: 2019/11/22 03:04:32 by cacharle #+# #+# # -# Updated: 2019/11/22 21:19:29 by cacharle ### ########.fr # -# # -# **************************************************************************** # +; **************************************************************************** ; +; ; +; ::: :::::::: ; +; ft_strdup.s :+: :+: :+: ; +; +:+ +:+ +:+ ; +; By: cacharle +;+ +:+ +;+ ; +; +;+;+;+;+;+ +;+ ; +; Created: 2019/11/22 03:04:32 by cacharle ;+; ;+; ; +; Updated: 2019/11/23 00:19:26 by cacharle ;;; ;;;;;;;;.fr ; +; ; +; **************************************************************************** ; -.globl _ft_strdup +extern _ft_strlen +extern _ft_strcpy +extern _malloc -# char *ft_strdup(const char*); +global _ft_strdup + +; char *ft_strdup(const char*); _ft_strdup: push rbp mov rbp, rsp -- cgit