>You mean when you saw this: Yes I had looked at that, and on thinking it through after posting came to the conclusion that it probably is not possible to really improve on it. It was that the 8080 code fragment I remembered was so neat that I went looking for it. The problem with trying to use it on the PIC is that the PIC does not have a DAA instruction and the effort involved in emulating it would make such a mess of the PIC code that it would not be worth trying. -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics