> Hi, has anyone done a table-less data table?? > > I have run out of room on a 12-core PIC and > need a small table. > > I have tried: > > movlw 23 (table data byte) > decf count,f > skpnz > goto table_exit > movlw 71 (next data byte) > decf count,f > skpnz > goto table_exit > > But this is 4 bytes per table data byte. > Does anyone have a more efficient system? How many table entries are there? Unless the table is very small, a normal table will be more compact than what you did above. Are you totally out of room or just room in the first 256 locations? What volume will you be producing these in? If the volumes are small, then just getting a bigger PIC for an extra dollar or two will be much cheaper than spending a lot of time trying to squeeze twenty pounds of code into a ten pound PIC. ******************************************************************** Olin Lathrop, embedded systems consultant in Littleton Massachusetts (978) 742-9014, olin@embedinc.com, 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