Hey all, I am trying to make a program that uses an LCD display. I know the LCD works fine, but I want to send a long string of text. Instead of doing each letter individually, I tryed to construct a jump table with dt. However, debugging shows that W always contains 8 after the jump table, instead of the ascii code for the correct letter. Heres a of my code: getstring addwf PCL,f ; A subroutine to fetch a letter dt "olleH" ; (hello backwards ; meanwhile, in the main program...... movlw 04h ; number of characters movwf number ; character counter loop: movf number,w ; put in in W call getstring ; put character number W into W IOExpLCDSendData ; macro which sends the data in W decfsz number,f goto loop BTW, I know there are ways of sending a string the right way around, but I find it easier to just reverse the string in the dt, and run the loop decrementing. Thanks in advance, -- Dave All us base are belong to you. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist