And why can't you use a normal ADDWF PCL,F table? Bob Ammerman RAm Systems (contract development of high performance, high function, low-level software) ----- Original Message ----- From: "Roman Black" To: Sent: Wednesday, May 30, 2001 11:37 AM Subject: Re: [PIC]: A table question. > 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? > > I have thought about placing a table in > a ram bank, then using FSR to address it as > the 16C505 can address any ram with FSR without > bank switching. I think this will get me > 2 bytes rom = 1 table data byte. But it is messy. > > Any suggestions from the PIC masters? :o) > -Roman > > -- > http://www.piclist.com#nomail Going offline? Don't AutoReply us! > email listserv@mitvma.mit.edu with SET PICList DIGEST in the body > > -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body