On Thu, 06 Jan 2005 08:12:06 -0700, Bob Axtell wrote: > >I do it differently, in that I always make sure >that the table starts on a PCLath boundary, >by declaring an ORG (($ & h'1F00') + h'100') >before the table_start which will force Table_start >to be on a 256-byte boundary. > That can work as long as you've got sufficient code space that you can afford to throw away up to 255 instructions worth of it for every table you use. Do you insert the 'org' as a result of a conditional assembly to see if there's going to be a boundary crossing? if ($ & h'1F00') <> (end_table & h'1F00') ORG (($ & h'1F00') + h'100') endif Also, that method isn't available when you're doing relocatable coding (unless you do some fiddling with the linker script). Regards, Bob -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist