> I've used the first half of this 16/8 to 16 routine > http://www.piclist.com/techref/microchip/math/div/16by8lzf-ng.htm > but the output seems wrong for some instances. > Does anyone have an easy routine that only does unsigned integers? > A and B are in the range of 01h - ffh and the output is 0001h - ffffh. > Any help with this is appreciated. :-) > Regards... David, have you tried the fixed version down in the web page? Anyway, I deleted the buggy version, and there is only the fixed one now. The first part of it should work fine for you! Nikolai -- 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