> How do I go about storing a string, for example "TEST" > in a 4 byte res data space using assembly code? > > Example, I res the following data space > > Data res 4 Are you asking how to define at assembly time that the data locations should contain the string, or how to get the string there at run time? RES reserves RAM, so it wakes up in an unknown state when the PIC is powered up. If you want it to contain the string, you have to write it there at run time. I sorta remember the assembler has directives for defining initialized RAM areas, but I've never used them. It will do a lot of things behind your back, like put a table of the data in program memory and load a routine to copy it from program memory to RAM. I don't remember if you have to call the routine explicitly or if it is called automatically at power up and what gets put at the reset vector if it does. All I remember is that it looked like something to avoid when I read about it a few years back. ***************************************************************** Embed Inc, embedded system specialists in Littleton Massachusetts (978) 742-9014, http://www.embedinc.com -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body