diff --git a/src/ft_strcmp.asm b/src/ft_strcmp.asm index fad7844..77adddf 100644 --- a/src/ft_strcmp.asm +++ b/src/ft_strcmp.asm @@ -17,9 +17,6 @@ loop: inc rcx jmp loop out: - mov rax, 0 - mov rbx, 0 - mov bl, BYTE [rsi + rcx] - mov al, BYTE [rdi + rcx] - sub rax, rbx + sub bl, dl + movsx rax, bl ret \ No newline at end of file