Quote:
|
Originally Posted by CodeJunkie
my question is simply, why does assembly push a registery onto the stack before I.e calling a routine that collects a value?
I understand that it is saving the registery , but if this instruction is located at the start of the program, what is it that it is saving?
It appears to me that it is saving before it is getting the result?
|
You are too vague. Depending on the function, values could be passed to it a lot of different ways. In higher level languages for example, calling convention is a very large factor.