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
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
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
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
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
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
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