cdb, (I deleted your message before I was able to respond.) The original author of the BCD routine you translated to xcsb was written by John Payson. Your routine: http://xcprod.com/cdb/utility_bin2dec_5.html Is basically: http://www.dattalo.com/technical/software/pic/bcd.txt You can see an explanation of the routine at the bottom of that link. Scott -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist