On Fri Apr 29 10:17 , 'Bob Ammerman' sent: >A couple of points: > >1: There is no reason to include the H'0A' bytes. HTML doesn't require them. > >2: Rather than try to prevent the zero bytes from being embedded, just >ignore them when copying your data. In this case you'd need to use a >different value as your 'end-of-text' marker (perhaps 0xFF). > >Bob Ammerman >RAm Systems > On point #1, I agree that HTML doesn't require them, but I believe HTTP does require newlines in the header (at least that's my understanding from writing perl cgi scripts). On point #2, I think you're stuck because of the word orientation of the 18f452. At the end of the DT assembler directive, the assembler wants to "finish off a word" so the next instruction is word aligned. You could use DT to define a series of shorter strings terminated with 0x00 (and the assembler might add another 0x00 after yours to get to a word boundary), then call a send string routine several times, pointing to the start of each string. Another approach would be to (as mentioned above), use another terminator (such as 0xff), and throw out 0x00s as they come up in your table. This'd let you define one long string using a bunch of DTs. The extra 0x00s added by the assembler would be thrown out by your routine that reads the table. Good luck! Harold -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist