indexlsb equ 0x80 indexmsb equ 0x81 ;table index is here temp equ 0x82 lookup: movlw low table addwf indexlsb,w movwf temp movfw indexmsb skpnc incf indexmsb,w addlw high table movwf PCLATH movfw temp movwf FSR table retlw 1 retlw 2 ... > -----Original Message----- > From: Fabio Pereira [mailto:fabio@PP.ADV.BR] > Sent: Friday, December 21, 2001 2:44 PM > To: PICLIST@MITVMA.MIT.EDU > Subject: Re: [PIC]: help with large table > > > > I need some code for a neat large table reader, > > which just gets one data byte and incs the 16bit > > pointer. The table is formatted in a continuous > > string of retlw instructions, and the first byte > > of the table can be anywhere in memory. > > * 16bit address of table first byte > > * 16bit address of table last byte > > (table can be any length up to 8k) > > > > Can anyone help with code to do this? Especially > > code that will suit 12 core and 14 core PICs, > > so min stack use. > > Thanks! :o) > > -Roman > > Roman: > > I don't think the PIC12 series (well, at least the 12 bit > core ones) will > support the RETLW instruction .... > > Fabio > > -- > 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