On Sat, 2006-02-25 at 04:28 -0500, Dmitriy Kiryashov wrote: > Hi Scott. > > I believe input value range for hex is limited to 0..99d for procedure > shown in your post and there is straight coded solution with 18 clocks > as well for that case ( I'm getting so lazy I guess .. :) Yes Dmitriy, you must be getting lazy. Why can't you squeeze this down to 12 instructions? :) I like your solution better than mine, because it's a) shorter and b) easier to understand! Scott -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist