i tried using the code...apparently the compiler is too smart for it's own good...but even if that did work it wouldn't get me to the point where i want to be...i still wouldn't know how to stop the linker/compiler from deadstripping it...but it was a good thought though...thanks...
as for putting it between ENTRIES END, well, i've tried that as well...still doesn't work though...i have it as a const char VERSION_STRING...should i define it as something else?
my prm looks like this:
NAMES
END
ENTRIES
IRBaseTimer_OnInterrupt
VERSION_STRING
END
SECTIONS
ROM = READ_ONLY 0xC000 TO 0xFFAF;
Z_RAM = READ_WRITE 0x0080 TO 0x009F;
RAM = READ_WRITE 0x00A0 TO 0x047F;
InterruptVectors_ROM = READ_ONLY 0xFFCC TO 0xFFFF;
VERSION_STRINGS = READ_ONLY 0xC000 TO 0xC0FF;
END
PLACEMENT
DEFAULT_RAM INTO RAM;
DEFAULT_ROM, ROM_VAR, STRINGS INTO ROM,;
_DATA_ZEROPAGE, MY_ZEROPAGE INTO Z_RAM;
VERSION INTO VERSION_STRINGS;
END
INIT _EntryPoint /* The entry point of the application. This function is generated into the CPU module. */
STACKSIZE 0x0080 /* Size of the system stack. Value can be changed on the "Build options" tab */
my map file looks like this:
NOT USED VARIABLES
RTSHC08.C.o (ansiis.lib):
_PowOfTwo_8 _PowOfTwo_16 _PowOfTwo_32 errno
Command_Table.c.o:
pCommand
Deck.c.o:
ReceiveBuffKeyPress
CommandoNG_ORIGINAL.c.o:
VERSION_STRING CurrentStatus KeyPress Shadow_PTD
Cpu.c.o:
CpuMode CCR_reg
and in my .c file, after main loop is closed:
void main(void)
{
blah blah blah;
}
/**************** VERSION STRING ***************************************/
const char VERSION_STRING[20] =
{' ','x','x','x','x','x','x','x','x',' ','x','x',' ',
'v','1','.','0','.','0',' '};
any other suggestions guys? thanks for the help!!!
Message Edited by jhall on 2006-10-0607:44 AM