ASM in PalmOS Developer Suite

2005-04-21 Thread Zakai Hamilton
Why wont the compiler let me use these macros in my C/C++ code: #define GetA7(ptr) asm { move.l #a7 , ptr } #define SetA7(ptr) asm { move.l ptr , #a7 } If you know a better way to get or set the A7/SP register, please tell me. This thing is driving me nuts! -- For information on using the Palm

Cooperative Multitasking

2005-04-20 Thread Zakai Hamilton
I am trying to implement cooperative multi-tasking for Screens Environment. Everything works apart from restoring the stack. I can store the stack into dynamic memory allocation using MemMove. I use SysGetStackInfo to get the stack data and I copy it. But when I want to restore it with MemMove

re: Cooperative Multitasking

2005-04-20 Thread Zakai Hamilton
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

Re: Cooperative Multitasking

2005-04-20 Thread Zakai Hamilton
OK... I am writing an environment for PalmOS and because its very module oriented, I wanted Cooperative multitasking using ErrSetJump and ErrLongJump and storing/restoring stacks via dynamic memory. Its a long story and I will post it once it works but I am stuck on writing the saved stack back

Spanning data over multiple records

2005-03-16 Thread Zakai Hamilton
Is there an easy way to read/write data over multiple records? This is so I can take a 256K stream and span it over multiple 32K records. However I want to use the PalmOS DB API not the File API because of the double buffering overhead. -- For information on using the Palm Developer Forums, or

Feature Memory bug in Developer Suite 1.1

2005-02-20 Thread Zakai Hamilton
When I try and call FtrPtrNew('ABCD', 0, 320, MyFtrPtr) it compiles fine but when I run it, I get the following fatal error: emul68kcommon.c, Line:2027, Invalid ptr: Why is this happening? -- For information on using the Palm Developer Forums, or to unsubscribe, please see

SysAppLaunch issues

2005-02-05 Thread Zakai Hamilton
Can I use longjmp/setjmp between SysAppLaunches? If I call setjmp in my application then call another application with SysAppLaunch (with 0 as flags, so nothing special, no globals, new stack and so on) and then call longjmp in the sub-launch to return to the setjmp of the parent app, will