Files
libasm/ft_strcmp.s

17 lines
180 B
ArmAsm

global ft_strcmp
extern _malloc
ft_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