----- Original Message ----- From: "Fabio Pereira" To: Sent: Friday, December 21, 2001 3:44 PM 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 .... They do have RETLW but the problem is with the CALL instruction that only uses address bits 10-9 and 7-0, so half the memory is inaccessible to a CALL. /\/\/\/*=Martin -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body