diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2021-02-11 15:44:44 +0100 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2021-02-11 15:44:44 +0100 |
| commit | d6240e3f6aeb342aaf13284c7cc93226970648aa (patch) | |
| tree | a5fef5bd1d55e0dd63cb986a445254cf8caa94ce /ft_strlen.s | |
| parent | cd5c9e6a923878e797212d27476ee217eb844a14 (diff) | |
| download | libasm-d6240e3f6aeb342aaf13284c7cc93226970648aa.tar.gz libasm-d6240e3f6aeb342aaf13284c7cc93226970648aa.tar.bz2 libasm-d6240e3f6aeb342aaf13284c7cc93226970648aa.zip | |
Replaced tab with spaces
Diffstat (limited to 'ft_strlen.s')
| -rw-r--r-- | ft_strlen.s | 10 |
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 |
