View Single Post
Old Jan 20th, 2006, 10:04 AM   #1
CodeJunkie
Programmer
 
Join Date: Aug 2005
Location: England
Posts: 37
Rep Power: 0 CodeJunkie is on a distinguished road
A noob to Assembly

I am still learning the basic fundaments of assembly so my knowledge is still extremely immature.
I keep finding myself perplexed over one detail despite extensive research, and so I feel compelled to simply ask..

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?

I am quite confused by this, because I have never encountered it from any high level languages, (only that recursion implements the stack..)

I would really appreciate anybody taking the time to explain, thanks everybody !
CodeJunkie is offline   Reply With Quote