THANKS! I finally tried this, and it worked fine. I did add "unsigned char" after "rom" so it would not assume the data was a 16 bit int. Thanks! Harold > On Thu, 27 Jan 2005, Harold Hallikainen wrote: > >> Is there an equivalent to the ASM DE instruction to define the contents >> of >> eeprom? The C compiler manual very helpfully has eeprom in the index. It >> helpfully refers me to a glossary page that defines eeprom. Or do I have >> to link in another asm file to just preload a few bytes of eeprom? > >>From the Microchip development tools FAQ forum: > >>From a compiler perspective, EEDATA is just romdata at a certain > address. Simply create an absolute romdata section at the address > 0xf00000. > > Example: > > #pragma romdata eedata_scn=0xf00000 > rom eedata_values[8] = {0, 1, 2, 3, 4, 5, 6, 7}; > #pragma romdata > > -- > John W. Temples, III > -- > http://www.piclist.com PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist > -- FCC Rules Updated Daily at http://www.hallikainen.com -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist