fix: ft_strcpy
This commit is contained in:
parent
f787b174b1
commit
d05135501f
|
@ -5,10 +5,12 @@ ft_strcpy:
|
|||
.loop:
|
||||
cmp byte [rsi + rax], 0
|
||||
je .done
|
||||
mov rdx, [rsi + rax]
|
||||
mov [rdi + rax], rdx
|
||||
mov dl, byte [rsi + rax]
|
||||
mov byte [rdi + rax], dl
|
||||
inc rax
|
||||
jmp .loop
|
||||
.done:
|
||||
inc rax
|
||||
mov byte [rdi + rax], 0
|
||||
mov rax, rdi
|
||||
ret
|
||||
|
|
Loading…
Reference in New Issue