On Wed, 30 May 2001, Byron A Jeff wrote: -- snip > > So the challenge is how to simulate a computed goto table without actually > using a computed goto. > There is an example on 12C509 from design for dollars contest: DD4018, playing music from table read. However, for me doesn't work well. Any ideea? Thanks, Vasile > BAJ > > > > > -----Mensaje original----- > > > De: pic microcontroller discussion list > > > [mailto:PICLIST@MITVMA.MIT.EDU]En nombre de Roman Black > > > Enviado el: miercoles, 30 de mayo de 2001 17:38 > > > Para: PICLIST@MITVMA.MIT.EDU > > > Asunto: 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 > > > > -- > 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 hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu