olin_piclist@embedinc.com (Olin Lathrop) wrote: > Just for fun, I wrote an integer to BCD routine to test out this hunch. > It is indeed significantly more efficient. My subroutine takes 65 > instruction locations, and uses 4 temporary variables. The existing > state of the temporary registers are saved/restored to/from a data stack. > Execution takes 879 cycles in all 5 test cases I tried. Try some test cases that actually have some 8s and 9s in them. I don't see how you can represent a BCD digit in 3 bits. -- Dave Tweed _______________________________________________ http://www.piclist.com View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist