Scott Dattalo wrote: >Here, I updated the comments: > >http://www.dattalo.com/technical/software/pic/bcd.php > > Have you looked at updating the code for the new DAW opcode in the PIC18? "DAW adjusts the eight-bit value in W, resulting from the earlier addition of two variables (each in packed BCD format) and produces a correct packed BCD result." It seems to me that it won't correct numbers arising from, say, multiplications - only additions. But it does add another flag (DC) which it reads from but does not set or clear itself... -Adam -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu