标签:ar sp bs as har 函数 ca nbsp c
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中存放的值用作函数的返回值
}
}
标签:ar sp bs as har 函数 ca nbsp c
原文地址:http://www.cnblogs.com/goalpower/p/4032601.html