Unfortunately I didn't write the code, I grabbed it from somewhere else then spent a while trying to work out why it wouldn't work on the 18F under simulation while it worked fine on a 16F under simulation. Just thought I'd save the next person who needs to do this conversion a bit of messing about. I based the code on the code from here: http://www.dattalo.com/technical/software/pic/bcd.txt This was referenced from a piclist.com page. It doesn't really bother me if it makes it onto piclist.com or not - just thought it would be nice to share. :-P Dom ----- Original Message ----- From: "Olin Lathrop" To: "Microcontroller discussion list - Public." Sent: Tuesday, August 12, 2008 10:58 PM Subject: Re: [PIC] How do I get some code listed on the Piclist Source Codepages ? > Picbits Sales wrote: >> Not sure how to do it so if anyone can do the honours it would be >> most appreciated. > > Considering there is not a single comment in sight, I personally don't > think > this code should be posted anywhere. Undocumented code is worse than no > code in that it gives the impression not writing meaningful comments is > somehow acceptable. > > > ******************************************************************** > Embed Inc, Littleton Massachusetts, http://www.embedinc.com/products > (978) 742-9014. Gold level PIC consultants since 2000. > -- > http://www.piclist.com PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist > > > No virus found in this incoming message. > Checked by AVG - http://www.avg.com > Version: 8.0.138 / Virus Database: 270.6.1/1608 - Release Date: 12/08/2008 > 16:59 > > > -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist