I have written a simple code that doesnt work, I am running this program in debug mode while Emulator is running, when I build with F7 I get the following warning :
"global variable ptr is accessed using A5 register ..."
-------------------------------------------- Here is the program code :
.... .....
static char far ptr[10000];
static UInt32 ap_w1PalmMain( UInt16 cmd, MemPtr /*cmdPBP*/, UInt16 launchFlags) { Err error; int i, j, x = 0;
error = RomVersionCompatible (ourMinVersion, launchFlags); if (error) return (error);
for(i = 0; i < 100; i++)
for(j = 0;j < 100; j++)
ptr[i*100 + j] = j;
// Rest of program ............. ............
-----------------------------------------------------------------
When I run this program, the Emulator gives me the following error message :
ap_w1 (1.0) just wrote to memory location 0x0000000F8 which is in low memory.
"Low memory" is defined as the firt 256 bytes of memory ....
I used MemHanleNew(), MemHandleLock(), MemPtrNew(), ... with different appropriate variable types but I still get the same error message.
Is this because I'm using the Demo version of MetroWercks Codewarrior or I'm making another mistake
Thank very much for your help.
_________________________________________________________________
Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=dept/bcomm&pgmarket=en-ca&RU=http%3a%2f%2fjoin.msn.com%2f%3fpage%3dmisc%2fspecialoffers%26pgmarket%3den-ca
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
