int strcmpA(char *s1, char *s2)
{
__asm
{
xor al, al
mov ecx, -1
repnz scasb
not ecx
mov edi, s1
mov esi, s2
repe cmpsb
mov eax, ecx //eax中存放的值用作函数的返回值
}
}
时间: 2024-11-02 21:05:42