I compiled a program in C which just sums all integers up to input. For example if input is 4 the output is 4 3 2 1=10.
I am having a bit of a trouble understanding the assembly x86 version of this program.
I wrote all the comments myself, please be so kind to indicate what I got right/wrong and how you would describe what each lines does. Through your comments I will be able to absorb a DEEPER understand of what the cpu exactly does, as for the moment I can't say that I fully understand what is going on here. Anyway, here it is. All comments are welcome.
.LC0:
.byte 0x25,0x64,0x0 ; 2 digits / integers that our program will output
main:
pushl