aboutsummaryrefslogtreecommitdiff
path: root/ft_strlen.s
diff options
context:
space:
mode:
Diffstat (limited to 'ft_strlen.s')
-rw-r--r--ft_strlen.s10
1 files changed, 5 insertions, 5 deletions
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