Aaron Ardiri wrote:
> ...
> have you thought about pusting these registers to the stack
> in InitApplication() and then popping them off the stack in
> QuitApplication() :)
A good idea! I was just thinking about recompiling the startup code of the
prc-tools, when I read your answer... Ok, now I wrote:
static u8 d45;
static Err StartApplication() {d45 = reg2; ...; return 0;}
static void StopApplication() {...; reg2 = d45;}
and...it works. No overlocked chunks any more!
In StartApplication d45 becomes 0x0004008E00000000. Thus, D4 seems to hold
somewhat very important.
> you can use a3 and a4 :) heh
Well, aren't a5 and a7 a better choice? ;-)
Thank you very much for your help.
Cheers,
Hans
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/