Dear All,
What is the purpose of just several 'mov' type statements one after another in Assembler. It seems to me that just moving data between different registers is rather 'purposeless', although it most likely not so.
Example:
Worker work = new Worker(); // C# statement
00000035 B9 40 9E 31 00 mov ecx,319E40h
0000003a E8 95 0A 9A FF call FF9A0AD4
0000003f 89 45 BC mov dword ptr [ebp-44h],eax
00000042 8B 4D BC mov ecx,dword ptr [ebp-44h]
00000045 E8 0E B0 9B FF call FF9BB058
0000004a 8B 45 BC mov eax,dword ptr [ebp-44h]
0000004d 89 45 C0 mov dword ptr [ebp-40h],eax
The following C# statement results in the assembler below it, what is the purpose of moving things between the ecx and eax registers? That's where I'm at a loss...