View Single Post
Old Jan 20th, 2006, 9:33 PM   #5
Mad_guy
Hobbyist Programmer
 
Mad_guy's Avatar
 
Join Date: Oct 2004
Location: Sandstorm, Techno Club
Posts: 239
Rep Power: 4 Mad_guy is on a distinguished road
Send a message via AIM to Mad_guy Send a message via MSN to Mad_guy
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.
__________________
os: mac os 10.5.4
revision control: git
editor: emacs

site
Mad_guy is offline   Reply With Quote