int _tmain(int argc, _TCHAR* argv[])
{
int num = 0;
int i = 0;
do
{
num = i + num;
i++;
} while (i<101);
printf("num %d\n", num);
getchar();
return 0;
}
int num = 0;
00D73CFE mov dword ptr [num],0
int i = 0;
00D73D05 mov dword ptr [i],0
do
{
num = i + num;
00D73D0C mov eax,dword ptr [i]
00D73D0F add eax,dword ptr [num]
00D73D12 mov dword ptr [num],eax
i++;
00D73D15 mov eax,dword ptr [i]
00D73D18 add eax,1
00D73D1B mov dword ptr [i],eax
} while (i<101);
00D73D1E cmp dword ptr [i],65h
00D73D22 jl wmain+2Ch (0D73D0Ch)
printf("num %d\n", num);
00D73D24 mov esi,esp
00D73D26 mov eax,dword ptr [num]
00D73D29 push eax
00D73D2A push 0D75858h
00D73D2F call dword ptr ds:[0D79110h]
00D73D35 add esp,8
00D73D38 cmp esi,esp
00D73D3A call __RTC_CheckEsp (0D71140h)
getchar();