strcmp: core: use movsx instead dirty code
This commit is contained in:
parent
723a2e901b
commit
5bccb1efc6
@ -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
|
Loading…
Reference in New Issue
Block a user