I haven't used table reads so much other than just implemting from cut and paste of examples. However, I am reading some analog data and want to do some window compares. I've written partial code using the cmpfsgt, cmpfslt opcodes and it works ok. But I was thinking, at midnight, wondered if I could somehow use a table lookup. So lets say I read a 150 decimal and anything from 145 to 155 I want to increment a counter. Possible to do a table lookup that returns and BRA address or call the count increment routine? ie if the value is 150, the table pointer for 150 would call inc_counter_middle and the return back to the analog read routine. Table pointer 151 thru 155 would have the same exact call. --------------------------------- Yahoo! Sports Rekindle the Rivalries. Sign up for Fantasy Football -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist