>> gettb clrf a_temp bcf STATUS,C rlf b_temp,F rlf a_temp,F rlf b_temp,F rlf a_temp,F readt1 movlw (high table_1) addwf a_temp,W movwf PCLATH movlw (low table_1) addwf b_temp,W call table movwf l0pbuf incf b_temp,F movf b_temp,W call table movwf l1pbuf incf b_temp,F movf b_temp,W call table movwf l2pbuf incf b_temp,W call table movwf l3pbuf return table movwf PCL ;table_1 is located away from the code, but within the same 2K block. table_1 dt 1,2,3,4 dt 5,6,7,8 etc. << I see lots of problems here. Please send email in PLAIN TEXT format to make it easy to reply to. It would also help if you commented your code. I can see what the code does, but I'd like to know what you intended it to do. Often the exercise of describing what each line is supposed to do will cause you to see the bugs yourself. ***************************************************************** 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