CompuServe Thread

#Stack

3 messages in this thread
#3337From: Chris O'ReganNov 8, 1990 5:52 PM
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?
#3377From: Don Curtis/SYSOPNov 9, 1990 1:13 AM
Chris, It's automatic. Don
#3387From: BILL LEACHNov 9, 1990 6:31 AM
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