From d6240e3f6aeb342aaf13284c7cc93226970648aa Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Thu, 11 Feb 2021 15:44:44 +0100 Subject: Replaced tab with spaces --- ft_strcpy.s | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'ft_strcpy.s') 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 -- cgit