I'm trying to implement my first PIC18 project (after spending all my=20 PIC work so far in the PIC16 family). So far it's a big improvement but=20 I'm having a little trouble figuring out the best way to do jump tables=20 in this architecture. I have three questions around this which I haven't seen anything=20 specific to the PIC18 family in my searching so far: 1. If I do math on TBLPTRL (adds, increments, etc), does the operation=20 automatically overflow into TBLPTRU:TBLPTRH or does the low register=20 just wrap around on its own? 2. Is it still true that math on PCL clears bit 8 of the PC? I don't=20 see that in the datasheet but hear people talking about this. I'm=20 guessing it doesn't apply to PIC18. 3. For a true jump table (not just a data lookup table), is the=20 preferred method to do a computed GOTO into a block of other GOTOs, or a=20 table of addresses retrieved by TBLRD and then poked into the PC=20 directly, or something else? Thanks, Steve --=20 Steve Willoughby / steve@alchemy.com "A ship in harbor is safe, but that is not what ships are built for." PGP Fingerprint 4615 3CCE 0F29 AE6C 8FF4 CA01 73FE 997A 765D 696C --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .