aboutsummaryrefslogtreecommitdiff
path: root/ft_strcpy.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_strcpy.s
parentc0bcb694bbcef0273d6e6fa93854ce6a10432b87 (diff)
downloadlibasm-9af248e8a78f111a39d507f199d56eb8af6e52d6.tar.gz
libasm-9af248e8a78f111a39d507f199d56eb8af6e52d6.tar.bz2
libasm-9af248e8a78f111a39d507f199d56eb8af6e52d6.zip
ft_atoi_base.s kinda done
Diffstat (limited to 'ft_strcpy.s')
-rw-r--r--ft_strcpy.s22
1 files changed, 11 insertions, 11 deletions
diff --git a/ft_strcpy.s b/ft_strcpy.s
index 5d32f2d..3789283 100644
--- a/ft_strcpy.s
+++ b/ft_strcpy.s
@@ -16,15 +16,15 @@ global _ft_strcpy
_ft_strcpy:
push rbx
push rcx
- mov rax, rdi ; dst
- mov rbx, rsi ; src
- mov rcx, -1
- FT_STRCPY_LOOP:
- inc rcx
- mov dl, byte [rbx + rcx]
- mov byte [rax + rcx], dl
- cmp byte [rbx + rcx], 0
- jne FT_STRCPY_LOOP
- pop rcx
- pop rbx
+ mov rax, rdi ; dst
+ mov rbx, rsi ; src
+ mov rcx, -1
+FT_STRCPY_LOOP:
+ inc rcx
+ mov dl, byte [rbx + rcx]
+ mov byte [rax + rcx], dl
+ cmp byte [rbx + rcx], 0
+ jne FT_STRCPY_LOOP
+ pop rcx
+ pop rbx
ret