On Mar 9, 2005, at 7:21 PM, Lee Jones wrote: >> On the 16F, it was simply.... >> >> d_user ;default code >> addwf PCL,f >> dt "6781234",0D > > DT generated a series of RETLW instructions in consecutive > program memory locations. There's nothing wrong with this same scheme on an 18f, although you'll have to double f first (and therefore the index couldn't be bigger than 127.) It's just that this makes the table twice as big as it needs to be, since program memory is 16 bits wide. There's a tradeoff between the extra space needed to implement the code for tblrd vs the extra space used by the table itself. BillW -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist