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