At 5:36 PM -0800 12/17/01, Renaud Amar wrote: > > What you might want to do is allocate your own private stack. Then, >> when your patch is called, switch from the current stack to your own. > > I think that will achieve the effect you want. > >That sounds good, but how do I allocate my own private stack, >and how do I switch to it from the current stack ? > >Just a pointer would be nice !
Allocate your new stack with MemPtrNew. Switch to it by setting CPU register A7 (the stack pointer) to the top of it (saving the previous A7 so that you can restore it later). -- Keith -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
