As a novice, I studied the "AN-526". Tried to run the program "Appendix = H: Binary (16bit) to BCD". However, the result in R0, R1, R2 become 06,85,53 in stead of 06,55,35 = when converting the number B'11111111' in both H_byte & L_byte. I traced every step but can't find where is the problem? Not yet understand the algorithm of such a conversion, my first step is = to follow the codes; even so the result is not correct. The sample routine was publilshed many years ago, there must be many = people ever study it. I would appreciate if someone hints me the blind = point(s) where I stuck? Regards Paul Tsai -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.