Jump to content
Sign in to follow this  
  • entries
    72
  • comments
    38
  • views
    22369

because i wanted to

Sign in to follow this  
mozie

259 views


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
}

Sign in to follow this  


0 Comments


Recommended Comments

There are no comments to display.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!