added read, strcmp, strcpy, finished write, added Makefile
This commit is contained in:
16
ft_strcpy.s
Normal file
16
ft_strcpy.s
Normal file
@@ -0,0 +1,16 @@
|
||||
extern _strcpy
|
||||
|
||||
_strcpy:
|
||||
xor rbx, rbx
|
||||
|
||||
.cpy:
|
||||
cmp dword [rsi + rbx], 0
|
||||
je .end
|
||||
mov rax, [rsi + rbx]
|
||||
mov [rdi + rbx], rax
|
||||
inc rbx
|
||||
jmp .cpy
|
||||
|
||||
.end:
|
||||
mov rax, rdi
|
||||
ret
|
||||
Reference in New Issue
Block a user