Martin R. Green wrote: > Starting with the lookup value in W, call a lookup subroutine to get > the > converted value, also in W. > > convert: > addwf PCL,1 > retlw val 1 ; W = 0 > retlw val 2 ; W = 1 > retlw val 3 ; W = 2 > retlw val 4 ; W = 3 > retlw val 5 ; W = 4 > ... > retlw val n ; W = n-1 > > Note that the entire lookup table must not cross a page boundary. > This all > depends on the unusual fact (compared to other MCU's) that the PIC > program Some time ago I posted a mail that allowed you to cross the boundary.... Look in the archives, or ask me and I'll type it out again! Cheers! -- Eric van Es | Cape Town, South Africa mailto:vanes@ilink.nis.za | http://www.nis.za/~vanes LOOKING FOR TEMPORARY / HOLIDAY ACCOMODATION? http://www.nis.za/~vanes/accom.htm