Roman Black wrote: > 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. Roman: If you don't need it to be fast (and if you can put the code in the lower half of a page), you can do this: MOVF COUNT,W ADDWF PC XORLW A ^ (B ^ 1) ;When COUNT = 0, W = A XORLW B ^ 1 ^ (C ^ 2) ;When COUNT = 1, W = B XORLW C ^ 2 ^ (D ^ 3) ;When COUNT = 2, W = C XORLW D ^ 3 ;When COUNT = 3, W = D -Andy -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body