added read, strcmp, strcpy, finished write, added Makefile

This commit is contained in:
2024-03-15 17:15:37 +01:00
parent 9316411eb6
commit 8a939458e6
7 changed files with 103 additions and 1 deletions

16
ft_strcpy.s Normal file
View 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