> I'm trying to store strings in program memory, using MP Lab ver 5.11.02. My > code contains: > > org 0x100 > DA "This is 16 chars" > DA "This is also 16 " > DA "La la la la la " Unfortunately you didn't say what processor family you are using. The DATA directive is for sticking raw data into program memory. This is pretty useless on a 12C or 16C unless you like to assemble instructions yourself. On those devices, the only meaningful way to put constants into program memory is with RETLW instructions. For strings you need to use the DT directive. It is specifically for building a table of values, which means wrapping each byte into a RETLW on 12C and 16C devices. Constants in program memory can be stored in a completely different way on 17C and 18C devices because these have 16 bit wide instruction words and can read program memory directly at run time. ***************************************************************** Olin Lathrop, embedded systems consultant in Devens Massachusetts (978) 772-3129, olin@cognivis.com, http://www.cognivis.com -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu