Added commentary

This commit is contained in:
2024-05-23 14:59:13 +02:00
parent b7a3b7140b
commit 44bb95ec7d
5 changed files with 37 additions and 35 deletions

View File

@@ -14,9 +14,9 @@ ft_strdup:
je .end
pop rsi ; we take the value we saved earlier
mov rdi, rax ; move the result of malloc into rdi (override strlen result)
call ft_strcpy
ret
call ft_strcpy ; copy the string
ret ; result is put into rax, return it
.end:
pop rsi
ret
pop rsi ; remove rsi from the stack
ret ; return