From d6240e3f6aeb342aaf13284c7cc93226970648aa Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Thu, 11 Feb 2021 15:44:44 +0100 Subject: Replaced tab with spaces --- ft_strlen.s | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'ft_strlen.s') diff --git a/ft_strlen.s b/ft_strlen.s index b0f84e7..d9b74cc 100644 --- a/ft_strlen.s +++ b/ft_strlen.s @@ -21,9 +21,9 @@ global M_FT_STRLEN section .text ; int ft_strlen(char *); M_FT_STRLEN: - mov eax, -1 + mov eax, -1 FT_STRLEN_LOOP: - inc eax - cmp byte [rdi + rax], 0 ; compare rbx[rax] and '\0' - jne FT_STRLEN_LOOP - ret + inc eax + cmp byte [rdi + rax], 0 ; compare rbx[rax] and '\0' + jne FT_STRLEN_LOOP + ret -- cgit