aboutsummaryrefslogtreecommitdiff
path: root/ft_strcpy.s
diff options
context:
space:
mode:
authorCharles Cabergs <me@cacharle.xyz>2021-02-11 15:44:44 +0100
committerCharles Cabergs <me@cacharle.xyz>2021-02-11 15:44:44 +0100
commitd6240e3f6aeb342aaf13284c7cc93226970648aa (patch)
treea5fef5bd1d55e0dd63cb986a445254cf8caa94ce /ft_strcpy.s
parentcd5c9e6a923878e797212d27476ee217eb844a14 (diff)
downloadlibasm-d6240e3f6aeb342aaf13284c7cc93226970648aa.tar.gz
libasm-d6240e3f6aeb342aaf13284c7cc93226970648aa.tar.bz2
libasm-d6240e3f6aeb342aaf13284c7cc93226970648aa.zip
Replaced tab with spaces
Diffstat (limited to 'ft_strcpy.s')
-rw-r--r--ft_strcpy.s26
1 files changed, 13 insertions, 13 deletions
diff --git a/ft_strcpy.s b/ft_strcpy.s
index eb8ea1a..d7cfac7 100644
--- a/ft_strcpy.s
+++ b/ft_strcpy.s
@@ -21,17 +21,17 @@ global M_FT_STRCPY
section .text
; char *ft_strcpy(char *dst, const char *src);
M_FT_STRCPY:
- push rbx
- push rcx
- mov rax, rdi ; dst
- mov rbx, rsi ; src
- mov rcx, -1
+ 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
- ret
+ 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