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 inc rcx
jmp loop jmp loop
out: out:
mov rax, 0 sub bl, dl
mov rbx, 0 movsx rax, bl
mov bl, BYTE [rsi + rcx]
mov al, BYTE [rdi + rcx]
sub rax, rbx
ret ret