A89: Stupid Stack Operation Question
[Prev][Next][Index][Thread]
A89: Stupid Stack Operation Question
I have noticed in many example programs that:
1) routine parameters data is pushed onto the stack;
2) a jsr someRoutine is performed and then upon returning,
3) a value is added back to the stack.
My question is:
Why is that data added back to the stack?
I know it is to correct the stack back to it's original
position and I know how the stack operates but, doesn't
the called routine do that when it obtains (pops) these
passed parameters?
Why is correcting the stack necessary.
----------------------------------------------------
Shoot-to-Win
Protect the 2nd Amendment
----------------------------------------------------
Follow-Ups: