because i wanted to

Published February 22, 2005
Advertisement
if(a++)  mov         ebx,edi   inc         edi    test        ebx,ebx   je          0000001F 	a--;  dec         edi  if(++b)  inc         esi    je          00000023 	--b;  dec         esi  


Then I started reading some more, and noticed a strange initilization of 'a', atleast it is strange to me.

int _tmain(){    // TODO: Please replace the sample code below with your own.	unsigned int a,b;	a = 5;00000000  push        ebp  00000001  mov         ebp,esp 00000003  sub         esp,8 00000006  push        edi  00000007  push        esi  00000008  push        ebx  00000009  xor         esi,esi 0000000b  xor         edi,edi 0000000d  mov         edi,5 	b = 6;00000012  mov         esi,6 	if(a++)00000017  mov         ebx,edi 00000019  inc         edi  0000001a  test        ebx,ebx 0000001c  je          0000001F 		a--;0000001e  dec         edi  	if(++b)0000001f  inc         esi  00000020  je          00000023 		--b;00000022  dec         esi  	system("Pause");00000023  mov         ecx,41D18Ch 00000028  call        dword ptr ds:[00875DACh] 0000002e  nop                  Console::WriteLine(S"Hello World");0000002f  mov         ecx,dword ptr ds:[019915A4h] 00000035  call        dword ptr ds:[79C56678h] 	return 0;0000003b  nop              0000003c  jmp         0000003E }
Previous Entry good morning folks
Next Entry caution of the day
0 likes 0 comments

Comments

Nobody has left a comment. You can be the first!
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Profile
Author
Advertisement

Latest Entries

Not bad.

1146 views

Zoned out.

1021 views

more

1101 views

Slow down champ.

917 views

I'll be back

880 views

Busy.

1036 views

oh teh noes!!

923 views
Advertisement