aboutsummaryrefslogtreecommitdiff
path: root/ft_strcpy.s
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2019-11-22 00:11:46 +0100
committerCharles <sircharlesaze@gmail.com>2019-11-22 00:11:46 +0100
commit0931febe3e178b4e484259c9cdc79ef452208ae7 (patch)
treea991e422cb6a1e98e03f951f3f3f962c3e9b5b42 /ft_strcpy.s
parent3eae1d082fbd86d48a8f9ee2c57b8931a468cb59 (diff)
downloadlibasm-0931febe3e178b4e484259c9cdc79ef452208ae7.tar.gz
libasm-0931febe3e178b4e484259c9cdc79ef452208ae7.tar.bz2
libasm-0931febe3e178b4e484259c9cdc79ef452208ae7.zip
ft_strlen.s (i can kinda compile this shit)
Diffstat (limited to 'ft_strcpy.s')
-rw-r--r--ft_strcpy.s12
1 files changed, 6 insertions, 6 deletions
diff --git a/ft_strcpy.s b/ft_strcpy.s
index 44a098d..2b7bbb9 100644
--- a/ft_strcpy.s
+++ b/ft_strcpy.s
@@ -2,10 +2,10 @@ _ft_strcpy:
pop ax
pop bx
mov ecx, eax ; copy
- FT_STRCPY_LOOP:
- mov [ecx], ebx
- inc ebx
- inc ecx
- cmp ebx, 0
- jneq FT_STRCPY_LOOP
+FT_STRCPY_LOOP:
+ mov [ecx], ebx
+ inc ebx
+ inc ecx
+ cmp ebx, 0
+ jneq FT_STRCPY_LOOP
ret