On Wed, Mar 07, 2007 at 09:05:25AM +1100, John La Rooy wrote: > You could also use a lookup table if you have plenty of free space. It's also real easy with a couple of compressed tables too. A table to convert the upper hex nybble to its corresponding BCD and a decimal add adjust table to compensate for hex digits with no corresponding BCD digit should be enough. No more than 32 bytes. BAJ -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist