At 11:35 2003-1-14 -0800, you wrote:
You need to use the PalmOSRuntime_2i_A4A5.lib library. If you don't have it, you just need to build it. Access is then normal, whether it be data or code.WRONG!
The "A4A5" version of the runtime is only for apps that use CodeWarrior expanded mode. You use the "A5" only version for standard applications. If you're using expanded mode, there are other modifications that you much make to your program, specifically involving OS callback routines, that require a little up-front design work.
Expanded mode, for those who don't know, is a special code and data generation mode that sacrifices an address register (A4) to allow access to a second 64K chunk of program data that's stored in the storage heap. Palm OS already sets up A5 to point to a chunk of read/write data on the dynamic heap. Since this data space is maintained by the runtime library, it can also easily be created when you're handling non-global launch codes, allowing for things like virtual functions that respond to a find request.
--
Ben Combee <[EMAIL PROTECTED]>
CodeWarrior for Palm OS technical lead
Palm OS programming help @ www.palmoswerks.com
--
For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
