Hi. Well, we all know how to do a computed table lookup in the 16-series by adding directly to the PCL and executing a RETLW. As when generating 7-seg-display codes from 0-9 binary values. But, if we already have the 7-seg-display-codes and want the correspondent 0-9 binary value ? The two ways I see are (1) to build a 2**7 bits long table with a lot of unused space and (2) use a series of sub/skip instructions. Anyone having a a better solution ? Jan-Erik. -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu