bueno, ya que estamos con alternativas a apis, yo coloco el mio.
StrCmpW: Compara cadenas UNICODE, si son iguales devuelve error_sucess
StrCmpW: Compara cadenas UNICODE, si son iguales devuelve error_sucess
Código (asm) [Seleccionar]
StrCmpW proc str1,str2
push ebx
push edx
mov ebx,str1
mov edx,str2
comparando:
movzx eax,word ptr[ebx]
cmp ax,word ptr[edx]
jne diferente
add ebx,2
add edx,2
test ax,ax
jz fin
jmp comparando
diferente:
inc eax
fin:
pop edx
pop ebx
ret
StrCmpW endp