From 9af248e8a78f111a39d507f199d56eb8af6e52d6 Mon Sep 17 00:00:00 2001 From: Charles Date: Mon, 25 Nov 2019 03:37:45 +0100 Subject: ft_atoi_base.s kinda done --- ft_strlen.s | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'ft_strlen.s') diff --git a/ft_strlen.s b/ft_strlen.s index 41372eb..2f2dd26 100644 --- a/ft_strlen.s +++ b/ft_strlen.s @@ -15,8 +15,8 @@ global _ft_strlen ; int ft_strlen(char *); _ft_strlen: mov eax, -1 - FT_STRLEN_LOOP: - inc eax - cmp byte [rdi + rax], 0 ; compare rbx[rax] and '\0' - jne FT_STRLEN_LOOP +FT_STRLEN_LOOP: + inc eax + cmp byte [rdi + rax], 0 ; compare rbx[rax] and '\0' + jne FT_STRLEN_LOOP ret -- cgit