#include "stdafx.h"
const char* check()
{
char c=0xff;
unsigned char val=0xff;
return c==val?"yes":"no";
}
int _tmain(int argc, _TCHAR* argv[])
{
printf("%s\n",check());
return 0;
}
区别在 一个是movsx一个是movzx...........
00411AB6 movsx eax,byte ptr [c]
00411ABA movzx ecx,byte ptr [val]
00411ABE cmp eax,ecx