Thank you Don and Betty for the explanation of the stack. I guess I can
see the concept of it. A special place so that numbers or addresses can be
spread around the program without having to use a variable. One little
question, though. Is there a function that will enable me to use the
stack? Or is it something automatic?
Chris;
Its both… The processor automagically uses one of the two stacks
(supervisor or user) when processing traps. There are processor
instructions that enable the user (read programmer) to also use the stack.
Just remember that if you 'mess with the stack' you must ensure that the
data and addresses that the processor is expecting for a return must be
present and in the right location/order when the return occurs.
73, bill