-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Tamas Rudnai wrote: > Hi, > > Are you using linker or absolute code? Generally it is not a good idea > to mix the two, and I think you would better go with linker. Then you > can modify the linker script and can define a section as 'protected' > for the table and your ordinary code into the first page. Fantastic. Your advice worked perfectly. (If it's of use to someone else) my linker script now contains: CODEPAGE NAME=page0 START=0x0 END=0x7FF //CODEPAGE NAME=page1 START=0x800 END=0xFFF //CODEPAGE NAME=page2 START=0x1000 END=0x17FF CODEPAGE NAME=datapage START=0x800 END=0x1000 PROTECTED ... SECTION NAME=PROG0 ROM=page0 //SECTION NAME=PROG1 ROM=page1 //SECTION NAME=PROG2 ROM=page2 //SECTION NAME=PROG3 ROM=page3 SECTION NAME=DATASEC ROM=datapage // ROM for data tables SECTION NAME=IDLOCS ROM=.idlocs // ID locations SECTION NAME=DEEPROM ROM=eedata // Data EEPROM And the data table is defined as: DATASEC CODE BIGTABLE dt 0x00, 0x01, 0x00, 0x02 dt 0x01, 0x31, 0x00, 0x42 I spent way too much time on that! A big thank you to Tamas - -- Brendan Gillatt | GPG Key: 0xBF6A0D94 brendan {a} brendangillatt (dot) co (dot) uk http://www.brendangillatt.co.uk -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (MingW32) iD8DBQFLZz2iHEhZ5Ws5poERAg1fAJ9zCAUeXOp3YRMhdPbJK6h0zUau/ACeKNjf ydUPk4PXcjF9N6KDmR023NI= =tc2U -----END PGP SIGNATURE----- -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist