15 lines
176 B
ArmAsm
15 lines
176 B
ArmAsm
|
global ft_strcpy
|
||
|
|
||
|
ft_strcpy:
|
||
|
xor rax, rax
|
||
|
.loop:
|
||
|
cmp byte [rsi + rax], 0
|
||
|
je .done
|
||
|
mov rdx, [rsi + rax]
|
||
|
mov [rdi + rax], rdx
|
||
|
inc rax
|
||
|
jmp .loop
|
||
|
.done:
|
||
|
mov rax, rdi
|
||
|
ret
|