Hi, Luis. I've found this : http://www.piclist.com/techref/microchip/bigtable.htm It work fine for my application. I use litle and big tables in = relocatable code and i have crossing of page boundary. For avoid error in calculation You need to check the crossing by adding = Offset to StartTableAdress and if result > 256 simply increment the = PCLATH (high byte of adress) movlw Low(TableStart) addwf OffsetL,W skpnc incf PCLATH,F movwf PCL ;computed goto with right PCLATH ... TableStart Retlw d'0' Retlw d'255' Retlw d'9' .... etc Best Regards Artem = antoniasse a =E9crit : > Hi, > > How is the correct form (or best way) to create a table lookup with > RETLWs and don=B4t cross 256 byte page boundary on PIC18Fxxxx? > > Any suggestion? > > Regards > > Luis F. > = -- = http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist