1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
| void set1 ( int* a, int* b )
{
if( *b != 0 )
00401420 mov ecx,dword ptr [esp+8]
00401424 mov edx,dword ptr [esp+4]
00401428 xor eax,eax
0040142A cmp dword ptr [ecx],eax
0040142C sete al
0040142F mov dword ptr [edx],eax
*a = 0 ;
else
*a = 1 ;
}
00401431 ret
void set2 ( int* a, int* b )
{
*a = *b ? 0 : 1 ;
00401440 mov ecx,dword ptr [esp+8]
00401444 mov edx,dword ptr [esp+4]
00401448 xor eax,eax
0040144A cmp dword ptr [ecx],eax
0040144C sete al
0040144F mov dword ptr [edx],eax
}
00401451 ret |