Just a thought, I don't have any experience with this but why do you want to "replace" the stack? It should be enough to replace A5 register (which points to the stack). Have a look at setjmp longjmp macros, setjmp saves the registers and longjmp restores them, so the same with additional replace of the A5 register to point to the current thread stack should work. However there might be big problems on palmOS 5 as the code is interpreted.
----- Original Message ----- From: "Zakai Hamilton" <[EMAIL PROTECTED]> To: "Palm Developer Forum" <[email protected]> Sent: Wednesday, April 20, 2005 15:55 Subject: re: Cooperative Multitasking > OK... It basicly boils down to this... can you replace the current runnning stack with a previous saved stack? If so... can you use MemMove or what function or code should be used to overwrite the current stack? > -- > For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
