Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Learn lf2.exe from C
#2
AMAZING! I really learned a lot from that. Few questions though:
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:
C Programming
    C-Code:
struct frame * a_frame = &a_file->frames[frame_id];
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:
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]
A-Engine: A new beat em up game engine inspired by LF2. Coming soon

A-Engine Dev Blog - Update #8: Timeout

Reply
Thanks given by:


Messages In This Thread
Learn lf2.exe from C - by o_g349 - 08-23-2014, 06:22 AM
RE: Learn lf2.exe from C - by A-Man - 08-24-2014, 04:35 AM
RE: Learn lf2.exe from C - by o_g349 - 08-24-2014, 06:30 AM
RE: Learn lf2.exe from C - by A-Man - 08-24-2014, 08:27 AM
RE: Learn lf2.exe from C - by o_g349 - 08-24-2014, 11:01 AM
RE: Learn lf2.exe from C - by MH-LABEEB - 02-20-2015, 04:07 AM
RE: Learn lf2.exe from C - by A-Man - 02-20-2015, 04:34 AM
RE: Learn lf2.exe from C - by MH-LABEEB - 02-20-2015, 04:40 AM
RE: Learn lf2.exe from C - by Memento - 02-20-2015, 06:35 AM
RE: Learn lf2.exe from C - by A-Man - 02-20-2015, 07:23 AM
RE: Learn lf2.exe from C - by MH-LABEEB - 02-20-2015, 07:41 AM
RE: Learn lf2.exe from C - by o_g349 - 02-21-2015, 01:14 PM



Users browsing this thread: 3 Guest(s)