Are you locked into XC8? MikroC has an EEPROM editor. I use it all the time to stuff startup values, passwords, etc. into the EEPROMs. You can randomly edit any value in hex or ascii. Allen > -----Original Message----- > From: piclist-bounces@mit.edu [mailto:piclist- > bounces@mit.edu] On Behalf Of David Duffy (AVD) > Sent: Monday, October 14, 2013 12:37 AM > To: PicList > Subject: [PIC] EEPROM in XC8 >=20 > I found the functions for EEPROM access in XC8 no problem. > One thing I > can't seem to find is how to pre-load values in specific > locations at > compile time. I do not want to associate the values with C > variables. >=20 > There is a macro __EEPROM_DATA(...) but that seems to > only be for a > block of 8 bytes at the start of the EE address space. You can > put > multiples of the macro in of course, but I often need to set > just a > value here and there. >=20 > Is there an XC8 equivalent of the old asm way: >=20 > org 0xF000 ;eeprom data space 0x00 .. 0xff (256 bytes) > de 0x20 ;network address (serialised) >=20 > org 0xF007 ; > de 0x02 ;transmit response delay (10ms increments) >=20 > David... >=20 > -- > ___________________________________________ > David Duffy Audio Visual Devices P/L > Unit 8, 10 Hook St, Capalaba 4157 Australia > Ph: +61 7 38235717 Fax: +61 7 38234717 > Our Web Site: www.audiovisualdevices.com.au > ___________________________________________ >=20 > -- > http://www.piclist.com/techref/piclist PIC/SX FAQ & list > archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist --=20 http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .