Hi Andrew (and the rest of you too :-) ) Yeah, you're right. I still froget the split address areas of the PIC, and the way it uses internal RAM. I'm more used to a single addressing area like (8085 or Z80) were we share the same addressing space bettwen Program, Data and Stack. Althought my remark was more kiding than other thing, I own you an apologie (and 20 bucs), sorry I didn't make sure my brain was in gear before I engaged my mouth. best regards Jorge F Andrew Warren wrote: > > Jorge Ferreira wrote: > > > Who about: > > DB msg1 "My string",0 > > > > I've using this kind of construct for years! Or am I missing > > something here; isn't this allowed on PIC programming ? > > Jorge: > > Sure, it's allowed... But it doesn't do what my code does. In fact, > it doesn't do anything particularly useful at all, unless you're > using a PIC17Cxx. > > "DB" stores the string in the PIC's program space; my code stored the > string in the PIC's registers. > > If you wanted to store the string in the program space, you could do > so using the "DT" directive. The code to access the string would > involve direct modifications of the PIC's program-counter... If you > go back and re-read the first half of my message to which you > replied, you'll see that I gave an example of program-space string > storage that does precisely that. > > -Andy > > === Andrew Warren - fastfwd@ix.netcom.com > === Fast Forward Engineering - Vista, California > === http://www.geocities.com/SiliconValley/2499