I will see if I can explain it
pic18 pgm mem is stored as words , so if the bytes are not an even number the last byte is padded with 00
if we store this @ db "say",34,"hello",34,0
then its stored like this lst file extract
00014A 6173 2279 6568 db "say",34,"hello",34,0 ; note order looks reversed but its really lowbyte first
6C6C 226F 0000
when readcode reads it back
its lowbyte, highbyte
so the string is returned in order as say"hello",0
Bookmarks