08-24-2014, 04:35 AM
AMAZING! I really learned a lot from that. Few questions though:
http://www.lf-empire.de/forum/showthread.php?tid=9316
There ^; lea together with dword ptr ds seems to actually store the sum value of ecx + edx + 7A4 into ecx; not fetch data of that address (right?). In this case though, it worked differently again 0_o. Can you get into more details with that please?
Thanks a lot!!!
Quote:When the sub esp,30 is executed, stack pointer (esp) will prepare the space for local variables usage.So is that actually the process of allocation of data (variables and objects)? We just subtract the stack pointer?
Quote:These two lines imul ecx,ecx,178 and lea ecx,dword ptr ds:[ecx+edx+7A4] means:I don't understand how that would possibly be all this. The 178 is probably the size of some object being multiplied by the index to find its address. The second line though, doesn't make any sense to me. Check this out:
C Programming
C-Code:struct frame * a_frame = &a_file->frames[frame_id];
http://www.lf-empire.de/forum/showthread.php?tid=9316
There ^; lea together with dword ptr ds seems to actually store the sum value of ecx + edx + 7A4 into ecx; not fetch data of that address (right?). In this case though, it worked differently again 0_o. Can you get into more details with that please?
Thanks a lot!!!
![[Image: signature.png]](http://s3.postimg.org/wedqxlk3n/signature.png)
A-Engine: A new beat em up game engine inspired by LF2. Coming soon
A-Engine Dev Blog - Update #8: Timeout