Re: LZ: User stacks


[Prev][Next][Index][Thread]

Re: LZ: User stacks



> On Tue, 6 Aug 1996, Eric C. Jensen wrote:
> 
> >      Can someone explain how to define your own stacks???  I think I have
> > some idea, but I don't quite know.  Do you allocate memory and then
> > allocate a seperate variable to be a stack pointer to manipulate it?
>  
> Basically, you decide where you want the new stack to be, and you load
> it's address in SP and you have a new stack.  You also need to save
> the old value of SP in most systems, and restore it before your program
> exits.  I'm not sure if that's true of the TI.
> 
yes you need to restore the stack.
(how else would your final ret return to zshell if you didn't????)


Rob Taylor MAIL - mailto:rtaylor@rtaylor.u-net.com 
           WEB  - http://www.u-net.com/~rtaylor/    


Follow-Ups: References: