aboutsummaryrefslogtreecommitdiff
path: root/ft_strlen.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_strlen.s
parentc0bcb694bbcef0273d6e6fa93854ce6a10432b87 (diff)
downloadlibasm-9af248e8a78f111a39d507f199d56eb8af6e52d6.tar.gz
libasm-9af248e8a78f111a39d507f199d56eb8af6e52d6.tar.bz2
libasm-9af248e8a78f111a39d507f199d56eb8af6e52d6.zip
ft_atoi_base.s kinda done
Diffstat (limited to 'ft_strlen.s')
-rw-r--r--ft_strlen.s8
1 files changed, 4 insertions, 4 deletions
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