I come here today because I am currently on a university work on introduction with assembly x86. As we did C prior this, our teacher asked us to explain this portion of code.
my basic understanding of what it does is:
- EAX will contain the value of the memory area associated with y.
- ECX will contain the value of the memory zone associated with EAX, ie the pointer to y.
- imul will multiply the value of the pointer eax (i.e. the pointer to y) and the value of x.
- We move the pointer of y in EDX, then we move the value of the multiplication to the pointer of y.
Am I right? If not, could someone give me a better explaination of the part I misunderstood?
Thank you in advance.