oh yes, Jan-Erik, I do believe you. And I do understand what you say. and I am working on it to find out from the map file and the lst file what went wrong. just not much success so far, except the startup points are different in the version which fails and the one which works (with the tables at the end). but I am working on it :) Lembit ----- Original Message ----- From: "Jan-Erik Soderholm" To: Sent: Saturday, September 09, 2006 8:52 PM Subject: RE: [PIC] defining data in Program Memory > Lembit Soobik wrote : > >> with dataPoint and dataLines (they remain 0x00) >> and in case of TXSTA (the last line above), >> instead of moving the 0xA4 into TXSTA, it adds it to >> the 2 which already was in TXSTA, resulting in 0xA6. > > Well now, you *DO* remember what I wrote before, right ? > > One of the "values" in your table, translates (*if* executed > as if it would have been "code") into an "ADDWFC with result > put back into 'f'". > > Doesn't that ring a bell ??? > > I bet that you have some code that doesn't ends properly > and let the processor run straight into your "table". > > What is so hard with checking the MAP file !!! > > The point from Tamas about checking *where* your "STARTUP" > code ends up in memory is of course also highly rellevant... > > Best Regards, > Jan-Erik. > > > > -- > http://www.piclist.com PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist > > > -- > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.1.405 / Virus Database: 268.12.2/442 - Release Date: 08.09.2006 > > -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist