strcmp: core: use movsx instead dirty code

This commit is contained in:
starnakin 2024-09-02 17:21:52 +02:00
parent 723a2e901b
commit 5bccb1efc6

View File

@ -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