diff options
| author | Charles <sircharlesaze@gmail.com> | 2019-11-21 05:04:37 +0100 |
|---|---|---|
| committer | Charles <sircharlesaze@gmail.com> | 2019-11-21 05:04:37 +0100 |
| commit | 3eae1d082fbd86d48a8f9ee2c57b8931a468cb59 (patch) | |
| tree | 7325f5683ee3ac012c4f246681cd0dd43a0dbd3e /ft_strlen.s | |
| download | libasm-3eae1d082fbd86d48a8f9ee2c57b8931a468cb59.tar.gz libasm-3eae1d082fbd86d48a8f9ee2c57b8931a468cb59.tar.bz2 libasm-3eae1d082fbd86d48a8f9ee2c57b8931a468cb59.zip | |
Initial commit (i cant even compile this shit)
Diffstat (limited to 'ft_strlen.s')
| -rw-r--r-- | ft_strlen.s | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/ft_strlen.s b/ft_strlen.s new file mode 100644 index 0000000..32eaf0c --- /dev/null +++ b/ft_strlen.s @@ -0,0 +1,12 @@ +ft_strlen: + pop bx + mov eax, 0h +FT_STRLEN_LOOP: + mov ecx, [ebx] + cmp ecx, 0 + je FT_STRLEN_RET + inc eax + inc ebx + jmp FT_STRLEN_LOOP +FT_STRLEN_RET: + ret |
